Decouple -Werror from MORE_WARNINGS

This commit is contained in:
ISSOtm
2026-04-13 21:50:24 +02:00
committed by Eldred Habert
parent e6916360f4
commit 0849eb801e
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ else()
-Wno-gnu-zero-variadic-macro-arguments)
if(MORE_WARNINGS)
add_compile_options(-Werror -Wextra
add_compile_options(-Wextra
-Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond
-Wfloat-equal -Wlogical-op -Wnull-dereference -Wold-style-cast -Wshift-overflow=2
-Wstringop-overflow=4 -Wtrampolines -Wundef -Wuninitialized -Wunused -Wshadow
+2
View File
@@ -7,6 +7,8 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
"CMAKE_LINK_WARNING_AS_ERROR": true,
"MORE_WARNINGS": true,
"SANITIZERS": true
},