Commit dc796f73 authored by Eric Engestrom's avatar Eric Engestrom 💤
Browse files

wsi: suppress "unused function" warning



Several of these types are only converted one way.
Instead of splitting these into multiple macros, let's just `MAYBE_UNUSED` them.
Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
parent a28dc6b5
Pipeline #28620 passed with stages
in 15 minutes and 56 seconds
......@@ -23,6 +23,7 @@
#ifndef WSI_COMMON_PRIVATE_H
#define WSI_COMMON_PRIVATE_H
#include "util/macros.h"
#include "wsi_common.h"
struct wsi_image {
......@@ -155,13 +156,13 @@ wsi_display_finish_wsi(struct wsi_device *wsi_device,
#define WSI_DEFINE_NONDISP_HANDLE_CASTS(__wsi_type, __VkType) \
\
static inline struct __wsi_type * \
MAYBE_UNUSED static inline struct __wsi_type * \
__wsi_type ## _from_handle(__VkType _handle) \
{ \
return (struct __wsi_type *)(uintptr_t) _handle; \
} \
\
static inline __VkType \
MAYBE_UNUSED static inline __VkType \
__wsi_type ## _to_handle(struct __wsi_type *_obj) \
{ \
return (__VkType)(uintptr_t) _obj; \
......
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