diff --git a/tests/TypeVar.test.cpp b/tests/TypeVar.test.cpp index 1d8db6bb..9210c098 100644 --- a/tests/TypeVar.test.cpp +++ b/tests/TypeVar.test.cpp @@ -466,7 +466,10 @@ TEST_CASE("proof_that_isBoolean_uses_all_of") TEST_CASE("content_reassignment") { #pragma GCC diagnostic push + +#if !defined(__has_warning) || __has_warning("-Wmaybe-uninitialized") #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif Type myAny{AnyType{}, /*presistent*/ true}; myAny.documentationSymbol = "@global/any"; #pragma GCC diagnostic pop