From 38d76e658d9d7ceafbabe95b7feff7c0b27bafed Mon Sep 17 00:00:00 2001 From: Vighnesh Date: Fri, 11 Oct 2024 12:56:47 -0700 Subject: [PATCH] disable maybe uninitialized error --- tests/TypeVar.test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TypeVar.test.cpp b/tests/TypeVar.test.cpp index 9e21b1e0..bfaa567f 100644 --- a/tests/TypeVar.test.cpp +++ b/tests/TypeVar.test.cpp @@ -465,6 +465,8 @@ TEST_CASE("proof_that_isBoolean_uses_all_of") TEST_CASE("content_reassignment") { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "maybe-uninitialized" Type myAny{AnyType{}, /*presistent*/ true}; myAny.documentationSymbol = "@global/any"; @@ -477,6 +479,7 @@ TEST_CASE("content_reassignment") CHECK(!futureAny->persistent); CHECK(futureAny->documentationSymbol == "@global/any"); CHECK(futureAny->owningArena == &arena); +#pragma GCC diagnostic pop } TEST_SUITE_END();