diff options
| author | 2021-01-24 17:31:29 -0300 | |
|---|---|---|
| committer | 2021-01-24 17:31:29 -0300 | |
| commit | 748551dafba54ae0c9a43946dbe50c878a1be17d (patch) | |
| tree | feef65544b13daeb621e109ae6a10b52cc5414da /src | |
| parent | video_core/cmake: Enforce -Warray-bounds and -Wmissing-field-initializers (diff) | |
| download | yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar.gz yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar.xz yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.zip | |
cmake: Enforce -Warray-bounds and -Wmissing-field-initializers globally
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/video_core/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 478246b6f..1cfd3bbc9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -64,8 +64,10 @@ if (MSVC) | |||
| 64 | else() | 64 | else() |
| 65 | add_compile_options( | 65 | add_compile_options( |
| 66 | -Wall | 66 | -Wall |
| 67 | -Werror=array-bounds | ||
| 67 | -Werror=implicit-fallthrough | 68 | -Werror=implicit-fallthrough |
| 68 | -Werror=missing-declarations | 69 | -Werror=missing-declarations |
| 70 | -Werror=missing-field-initializers | ||
| 69 | -Werror=reorder | 71 | -Werror=reorder |
| 70 | -Werror=switch | 72 | -Werror=switch |
| 71 | -Werror=uninitialized | 73 | -Werror=uninitialized |
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 8bf6eba0e..bb1f8491f 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt | |||
| @@ -308,10 +308,8 @@ if (MSVC) | |||
| 308 | ) | 308 | ) |
| 309 | else() | 309 | else() |
| 310 | target_compile_options(video_core PRIVATE | 310 | target_compile_options(video_core PRIVATE |
| 311 | -Werror=array-bounds | ||
| 312 | -Werror=conversion | 311 | -Werror=conversion |
| 313 | -Wno-error=sign-conversion | 312 | -Wno-error=sign-conversion |
| 314 | -Werror=missing-field-initializers | ||
| 315 | -Werror=pessimizing-move | 313 | -Werror=pessimizing-move |
| 316 | -Werror=redundant-move | 314 | -Werror=redundant-move |
| 317 | -Werror=shadow | 315 | -Werror=shadow |