From 5d746857982776b68058774258e854dfb55fc4da Mon Sep 17 00:00:00 2001 From: Vighnesh Date: Fri, 11 Oct 2024 16:54:35 -0700 Subject: [PATCH] unconditially add suppressing flag --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a59174f3c..edb7b850e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,7 @@ else() list(APPEND LUAU_OPTIONS -Wimplicit-fallthrough) list(APPEND LUAU_OPTIONS -Wsign-compare) # This looks to be included in -Wall for GCC but not clang list(APPEND LUAU_OPTIONS -Wno-maybe-uninitialized) + endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") @@ -124,8 +125,9 @@ endif() 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) + list(APPEND LUAU_OPTIONS -Wno-unused) # GCC has some bugs where we optional is treated as uninitialized if it is on a structg + endif() # Enabled in CI; we should be warning free on our main compiler versions but don't guarantee being warning free everywhere