diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-21 02:34:05 -0400 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-22 15:02:04 -0400 |
commit | 496695618a14d8e850fdd38c1b4e5159ee674bf5 (patch) | |
tree | 9a6f40d4875067fcfa32e6582ea8b91a3cb1c493 /src/CMakeLists.txt | |
parent | 0860fffd78e5c0a833bd0285d651a4615d29c4f4 (diff) |
CMakeLists: Treat -Wall and -Wextra as errors
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3575a3cb3..3b4862737 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -99,8 +99,9 @@ if (MSVC) set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) else() add_compile_options( - -Wall + -Werror=all -Werror=array-bounds + -Werror=extra -Werror=implicit-fallthrough -Werror=missing-declarations -Werror=missing-field-initializers @@ -112,8 +113,7 @@ else() -Werror=unused-function -Werror=unused-result -Werror=unused-variable - -Wextra - -Wmissing-declarations + -Wno-attributes -Wno-invalid-offsetof -Wno-unused-parameter |