From 19677eedb8e415405b7d7f7ffa00921e34194032 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 4 Jul 2017 05:56:36 -0700 Subject: [PATCH] fix unused function warning --- src/util/enum.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } -- 2.30.2