Commit 05e3ccd8 authored by Emma Anholt's avatar Emma Anholt
Browse files

vulkan/wsi: Fix compiler warning when no WSI platforms are enabled.

Reviewed-by: Kristian H. Kristensen's avatarKristian H. Kristensen <>
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
Part-of: <mesa/mesa!3539>
parent 71c62082
......@@ -42,7 +42,7 @@ wsi_device_init(struct wsi_device *wsi,
const struct driOptionCache *dri_options)
const char *present_mode;
VkResult result;
UNUSED VkResult result;
memset(wsi, 0, sizeof(*wsi));
......@@ -145,10 +145,13 @@ wsi_device_init(struct wsi_device *wsi,
return VK_SUCCESS;
#if defined(VK_USE_PLATFORM_XCB_KHR) || \
wsi_device_finish(wsi, alloc);
return result;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment