On 6/22/23 00:11, Dongwon Kim wrote:
  static void gd_gl_release_dmabuf(DisplayChangeListener *dcl,
                                   QemuDmaBuf *dmabuf)
  {
+    VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
  #ifdef CONFIG_GBM
      egl_dmabuf_release_texture(dmabuf);
+    if (vc->gfx.guest_fb.dmabuf == dmabuf) {
+        vc->gfx.guest_fb.dmabuf = NULL;
+    }
  #endif
  }

Conditionally unused variable outside the ifdef.

r~

Reply via email to