diff options
Diffstat (limited to 'src')
| -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) | |||
| 99 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) | 99 | set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) |
| 100 | else() | 100 | else() |
| 101 | add_compile_options( | 101 | add_compile_options( |
| 102 | -Wall | 102 | -Werror=all |
| 103 | -Werror=array-bounds | 103 | -Werror=array-bounds |
| 104 | -Werror=extra | ||
| 104 | -Werror=implicit-fallthrough | 105 | -Werror=implicit-fallthrough |
| 105 | -Werror=missing-declarations | 106 | -Werror=missing-declarations |
| 106 | -Werror=missing-field-initializers | 107 | -Werror=missing-field-initializers |
| @@ -112,8 +113,7 @@ else() | |||
| 112 | -Werror=unused-function | 113 | -Werror=unused-function |
| 113 | -Werror=unused-result | 114 | -Werror=unused-result |
| 114 | -Werror=unused-variable | 115 | -Werror=unused-variable |
| 115 | -Wextra | 116 | |
| 116 | -Wmissing-declarations | ||
| 117 | -Wno-attributes | 117 | -Wno-attributes |
| 118 | -Wno-invalid-offsetof | 118 | -Wno-invalid-offsetof |
| 119 | -Wno-unused-parameter | 119 | -Wno-unused-parameter |