From: Jacob Lifshay Date: Tue, 4 Jul 2017 12:56:36 +0000 (-0700) Subject: fix unused function warning X-Git-Tag: gsoc-2017~73^2~11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19677eedb8e415405b7d7f7ffa00921e34194032;p=kazan.git fix unused function warning --- diff --git a/src/util/enum.h b/src/util/enum.h index d68e3c9..697b334 100644 --- a/src/util/enum.h +++ b/src/util/enum.h @@ -209,8 +209,8 @@ constexpr Constexpr_array Default_enum_traitsvulkan_cpu_util_generate_enum_traits(Enum, Enum::Value1, Enum::Value2, Enum::Value3, * <...>); */ -#define vulkan_cpu_util_generate_enum_traits(Enum, ...) \ - ::vulkan_cpu::util::detail::Default_enum_traits \ +#define vulkan_cpu_util_generate_enum_traits(Enum, ...) \ + [[gnu::unused]] ::vulkan_cpu::util::detail::Default_enum_traits \ enum_traits_resolve_function(Enum) }