qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ui/dbus: fix clang compilation issue


From: Thomas Huth
Subject: Re: [PATCH] ui/dbus: fix clang compilation issue
Date: Wed, 26 Jul 2023 17:15:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 26/07/2023 17.12, marcandre.lureau@redhat.com wrote:
From: Marc-André Lureau <marcandre.lureau@redhat.com>

../ui/dbus-listener.c:236:9: error: expected expression
         Error *err = NULL;

See:
https://gitlab.com/qemu-project/qemu/-/issues/1782#note_1488517427

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
  ui/dbus-listener.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index 02fc6ae239..30917271ab 100644
--- a/ui/dbus-listener.c
+++ b/ui/dbus-listener.c
@@ -232,7 +232,7 @@ static void dbus_call_update_gl(DisplayChangeListener *dcl,
          egl_fb_read_rect(ddl->ds, &ddl->fb, x, y, w, h);
          dbus_gfx_update(dcl, x, y, w, h);
          break;
-    case SHARE_KIND_D3DTEX:
+    case SHARE_KIND_D3DTEX: {
          Error *err = NULL;
          assert(ddl->d3d_texture);
@@ -249,6 +249,7 @@ static void dbus_call_update_gl(DisplayChangeListener *dcl,
              dbus_update_gl_cb,
              g_object_ref(ddl));
          break;
+    }
      default:
          g_warn_if_reached();
      }

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]