Browse Source

clang: quiet warning.

Бранимир Караџић 1 year ago
parent
commit
3d53a4abaa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/typetraits_test.cpp

+ 3 - 0
tests/typetraits_test.cpp

@@ -6,6 +6,8 @@
 #include "test.h"
 #include <bx/typetraits.h>
 
+BX_PRAGMA_DIAGNOSTIC_PUSH();
+BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG("-Wunused-private-field");
 struct TestClass                {                                                                        };
 struct TestClassFinal final     {                                                                        };
 struct TestClassMember          { int32_t x;                                                             };
@@ -27,6 +29,7 @@ union  TestUnionEmpty           {
 union  TestUnion                { int32_t x; float y;                                                    };
 enum   TestEnumEmpty            {                                                                        };
 enum   TestEnum                 { Enum                                                                   };
+BX_PRAGMA_DIAGNOSTIC_POP();
 
 TEST_CASE("type-traits isReference", "")
 {