disable maybe uninitialized error

This commit is contained in:
Vighnesh 2024-10-11 12:56:47 -07:00
parent 0e1504fa52
commit 38d76e658d

View file

@ -465,6 +465,8 @@ TEST_CASE("proof_that_isBoolean_uses_all_of")
TEST_CASE("content_reassignment") TEST_CASE("content_reassignment")
{ {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "maybe-uninitialized"
Type myAny{AnyType{}, /*presistent*/ true}; Type myAny{AnyType{}, /*presistent*/ true};
myAny.documentationSymbol = "@global/any"; myAny.documentationSymbol = "@global/any";
@ -477,6 +479,7 @@ TEST_CASE("content_reassignment")
CHECK(!futureAny->persistent); CHECK(!futureAny->persistent);
CHECK(futureAny->documentationSymbol == "@global/any"); CHECK(futureAny->documentationSymbol == "@global/any");
CHECK(futureAny->owningArena == &arena); CHECK(futureAny->owningArena == &arena);
#pragma GCC diagnostic pop
} }
TEST_SUITE_END(); TEST_SUITE_END();