ui/console: Only declare variable fence_fd when CONFIG_GBM is defined
commit3dba3c0b2501e6afa9f722608be6a343465895da
authorCédric Le Goater <clg@redhat.com>
Wed, 15 May 2024 10:05:20 +0000 (15 12:05 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 17 May 2024 14:49:04 +0000 (17 16:49 +0200)
tree1f54f133fc7c8ee78f7aea92e7c0087cc7163ac1
parent85ef20f1673feaa083f4acab8cf054df77b0dbed
ui/console: Only declare variable fence_fd when CONFIG_GBM is defined

This to avoid a build breakage :

../ui/gtk-egl.c: In function ‘gd_egl_draw’:
../ui/gtk-egl.c:73:9: error: unused variable ‘fence_fd’ [-Werror=unused-variable]
   73 |     int fence_fd;
      |         ^~~~~~~~

Fixes: fa6426805b12 ("ui/console: Use qemu_dmabuf_set_..() helpers instead")
Cc: Dongwon Kim <dongwon.kim@intel.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240515100520.574383-1-clg@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
ui/gtk-egl.c