vulkandisplay: silence an unused but set error with no enable winsys implementations
authorMatthew Waters <matthew@centricular.com>
Fri, 23 Aug 2019 07:03:20 +0000 (17:03 +1000)
committerMatthew Waters <matthew@centricular.com>
Wed, 28 Aug 2019 10:34:39 +0000 (10:34 +0000)
gst-libs/gst/vulkan/gstvkdisplay.c

index 7851e26..2048ec8 100644 (file)
@@ -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;