diff options
| author | 2022-10-21 02:34:05 -0400 | |
|---|---|---|
| committer | 2022-10-22 15:02:04 -0400 | |
| commit | 496695618a14d8e850fdd38c1b4e5159ee674bf5 (patch) | |
| tree | 9a6f40d4875067fcfa32e6582ea8b91a3cb1c493 /src | |
| parent | Merge pull request #9095 from FernandoS27/meat-good-vegetable-bad (diff) | |
| download | yuzu-496695618a14d8e850fdd38c1b4e5159ee674bf5.tar.gz yuzu-496695618a14d8e850fdd38c1b4e5159ee674bf5.tar.xz yuzu-496695618a14d8e850fdd38c1b4e5159ee674bf5.zip | |
CMakeLists: Treat -Wall and -Wextra as errors
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 |