mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
Decouple -Werror from MORE_WARNINGS
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user