From c237c8de6ac23690db90c0be823371f7e63ef0f8 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 23 Aug 2019 17:03:20 +1000 Subject: [PATCH] vulkandisplay: silence an unused but set error with no enable winsys implementations --- gst-libs/gst/vulkan/gstvkdisplay.c | 4 ++++ 1 file changed, 4 insertions(+) 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;