vulkandisplay: silence an unused but set error with no enable winsys implementations

This commit is contained in:
Matthew Waters 2019-08-23 17:03:20 +10:00
parent 09883b6a6b
commit c237c8de6a

View 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;