From 472669a06d7f11f120b45e563de444cb899ab125 Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Tue, 26 Nov 2024 09:56:15 -0500 Subject: [PATCH] Ignore in clang --- CesiumGltf/test/TestPropertyAttributePropertyView.cpp | 4 ++++ CesiumGltf/test/TestPropertyTablePropertyView.cpp | 4 ++++ CesiumGltf/test/TestPropertyTexturePropertyView.cpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/CesiumGltf/test/TestPropertyAttributePropertyView.cpp b/CesiumGltf/test/TestPropertyAttributePropertyView.cpp index 7ca203444..d880a838b 100644 --- a/CesiumGltf/test/TestPropertyAttributePropertyView.cpp +++ b/CesiumGltf/test/TestPropertyAttributePropertyView.cpp @@ -1,5 +1,7 @@ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif #include "CesiumGltf/PropertyAttributePropertyView.h" @@ -826,4 +828,6 @@ TEST_CASE("Check that PropertyAttributeProperty values override class property " } } +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop +#endif diff --git a/CesiumGltf/test/TestPropertyTablePropertyView.cpp b/CesiumGltf/test/TestPropertyTablePropertyView.cpp index 0a9d9568b..bf6526349 100644 --- a/CesiumGltf/test/TestPropertyTablePropertyView.cpp +++ b/CesiumGltf/test/TestPropertyTablePropertyView.cpp @@ -1,5 +1,7 @@ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif #include "CesiumGltf/PropertyTablePropertyView.h" @@ -3714,4 +3716,6 @@ TEST_CASE("Check variable-length boolean array PropertyTablePropertyView") { } } +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop +#endif diff --git a/CesiumGltf/test/TestPropertyTexturePropertyView.cpp b/CesiumGltf/test/TestPropertyTexturePropertyView.cpp index 0de16f18f..31a374ea2 100644 --- a/CesiumGltf/test/TestPropertyTexturePropertyView.cpp +++ b/CesiumGltf/test/TestPropertyTexturePropertyView.cpp @@ -1,5 +1,7 @@ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif #include "CesiumGltf/KhrTextureTransform.h" #include "CesiumGltf/PropertyTexturePropertyView.h" @@ -2054,4 +2056,6 @@ TEST_CASE("Test normalized PropertyTextureProperty constructs with " } } +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop +#endif