diff --git a/gst-libs/gst/vulkan/gstvkdisplay.c b/gst-libs/gst/vulkan/gstvkdisplay.c index 7851e2624e..2048ec8d0c 100644 --- a/gst-libs/gst/vulkan/gstvkdisplay.c +++ b/gst-libs/gst/vulkan/gstvkdisplay.c @@ -503,6 +503,10 @@ gst_vulkan_display_choose_type (GstVulkanInstance * instance) first_supported = GST_VULKAN_DISPLAY_TYPE_WIN32; #endif + /* if there are no winsys enabled at build time, we get a 'unused but set' + * warning. Remove that. */ + (void) window_str; + if (type) return type;