summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-09-18 16:35:11 +0100
committerEric Engestrom <[email protected]>2017-09-19 09:46:18 +0100
commit31237b054e4c425412690b1f047bfede09fb96ac (patch)
treeb53e631a4b77cc3f1e7585ca1ae8f6d7db1106b2
parentfc7345415faaa2291a3a0710c60c76cc67fd188c (diff)
radv: replace conditional compilation with MAYBE_UNUSED
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r--src/amd/vulkan/radv_wsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
index 8a551c48bb6..c9d4bbce8ba 100644
--- a/src/amd/vulkan/radv_wsi.c
+++ b/src/amd/vulkan/radv_wsi.c
@@ -27,12 +27,11 @@
#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)