We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4adeb2 commit dd84aaeCopy full SHA for dd84aae
src/mono/CMakeLists.txt
@@ -453,6 +453,11 @@ if(GCC)
453
endif()
454
set(WERROR "-Werror=return-type -Werror-implicit-function-declaration")
455
456
+ check_c_compiler_flag("-Wno-unused-but-set-variable" WNO_UNUSED_BUT_SET_VARIABLE)
457
+ if(WNO_UNUSED_BUT_SET_VARIABLE)
458
+ set(WARNINGS "${WARNINGS} -Wno-unused-but-set-variable")
459
+ endif()
460
+
461
append("${WARNINGS} ${WERROR}" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
462
463
set(MONO_ZERO_LEN_ARRAY 0)
0 commit comments