Commit ca6e4126 authored by Thomas Andersen's avatar Thomas Andersen
Browse files

vulkan: avoid warning about unused function

VK_DEFINE_NONDISP_HANDLE_CASTS defines two functions.
In some cases only one or the other is used. Marking
them both unused here to avoid warnings.

Fixes a clang warning about unused static inlined functions.
parent 30bdd6e7
......@@ -94,7 +94,7 @@ vk_object_base_from_u64_handle(uint64_t handle, VkObjectType obj_type)
}
#define VK_DEFINE_NONDISP_HANDLE_CASTS(__driver_type, __base, __VkType, __VK_TYPE) \
static inline struct __driver_type * \
UNUSED static inline struct __driver_type * \
__driver_type ## _from_handle(__VkType _handle) \
{ \
struct vk_object_base *base = \
......@@ -104,7 +104,7 @@ vk_object_base_from_u64_handle(uint64_t handle, VkObjectType obj_type)
return (struct __driver_type *)base; \
} \
\
static inline __VkType \
UNUSED static inline __VkType \
__driver_type ## _to_handle(struct __driver_type *_obj) \
{ \
vk_object_base_assert_valid(&_obj->__base, __VK_TYPE); \
......
Supports Markdown
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