From a3a590a82e410840873d62d7723966cff1207b34 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 30 Apr 2020 10:00:28 +0200 Subject: [PATCH] Fix -Wmicrosoft-enum-value This is triggered when building projects that depend on SPIRV-Cross with clang-cl on Windows with `-pedantic` ../../third_party/spirv-cross/spirv_common.hpp(781,3): error: enumerator value is not representable in the underlying type 'int' [-Werror,-Wmicrosoft-enum-value] NoDominator = 0xffffffffu --- spirv_common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_common.hpp b/spirv_common.hpp index 671fd309..538799ae 100644 --- a/spirv_common.hpp +++ b/spirv_common.hpp @@ -775,7 +775,7 @@ struct SPIRBlock : IVariant ComplexLoop }; - enum + enum : uint32_t { NoDominator = 0xffffffffu };