diff --git a/Analysis/src/Differ.cpp b/Analysis/src/Differ.cpp index 290c9c67..b2cebc0b 100644 --- a/Analysis/src/Differ.cpp +++ b/Analysis/src/Differ.cpp @@ -13,6 +13,7 @@ namespace Luau { + std::string DiffPathNode::toString() const { switch (kind) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8053cc1..cad9867e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,6 +124,8 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # Some gcc versions treat var in `if (type var = val)` as unused # Some gcc versions treat variables used in constexpr if blocks as unused list(APPEND LUAU_OPTIONS -Wno-unused) + # GCC has some bugs where we optional is treated as uninitialized if it is on a structg + list(APPEND LUAU_OPTIONS -Wno-maybe-uninitialized) endif() # Enabled in CI; we should be warning free on our main compiler versions but don't guarantee being warning free everywhere diff --git a/tests/TypeVar.test.cpp b/tests/TypeVar.test.cpp index 1bb094a3..9e21b1e0 100644 --- a/tests/TypeVar.test.cpp +++ b/tests/TypeVar.test.cpp @@ -463,10 +463,6 @@ TEST_CASE("proof_that_isBoolean_uses_all_of") CHECK(!isBoolean(&union_)); } - -#if defined(__linux__) && defined(__GNUC__) -#else - TEST_CASE("content_reassignment") { Type myAny{AnyType{}, /*presistent*/ true}; @@ -482,9 +478,5 @@ TEST_CASE("content_reassignment") CHECK(futureAny->documentationSymbol == "@global/any"); CHECK(futureAny->owningArena == &arena); } -#endif - - - TEST_SUITE_END();