radv: replace conditional compilation with MAYBE_UNUSED
authorEric Engestrom <eric.engestrom@imgtec.com>
Mon, 18 Sep 2017 15:35:11 +0000 (16:35 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 19 Sep 2017 08:46:18 +0000 (09:46 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_wsi.c

index 8a551c48bb688bad356237632d9ab2944381dfac..c9d4bbce8ba2322da265b0c912362837ae3a8920 100644 (file)
 #include "radv_meta.h"
 #include "wsi_common.h"
 #include "vk_util.h"
+#include "util/macros.h"
 
-#ifdef VK_USE_PLATFORM_WAYLAND_KHR
-static const struct wsi_callbacks wsi_cbs = {
+MAYBE_UNUSED static const struct wsi_callbacks wsi_cbs = {
    .get_phys_device_format_properties = radv_GetPhysicalDeviceFormatProperties,
 };
-#endif
 
 VkResult
 radv_init_wsi(struct radv_physical_device *physical_device)