summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-24 21:31:29 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-24 21:31:29 +0100
commit748551dafba54ae0c9a43946dbe50c878a1be17d (patch)
treefeef65544b13daeb621e109ae6a10b52cc5414da
parentvideo_core/cmake: Enforce -Warray-bounds and -Wmissing-field-initializers (diff)
downloadyuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar
yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar.gz
yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar.bz2
yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar.lz
yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar.xz
yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.tar.zst
yuzu-748551dafba54ae0c9a43946dbe50c878a1be17d.zip
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/video_core/CMakeLists.txt2
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)
else()
add_compile_options(
-Wall
+ -Werror=array-bounds
-Werror=implicit-fallthrough
-Werror=missing-declarations
+ -Werror=missing-field-initializers
-Werror=reorder
-Werror=switch
-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)
)
else()
target_compile_options(video_core PRIVATE
- -Werror=array-bounds
-Werror=conversion
-Wno-error=sign-conversion
- -Werror=missing-field-initializers
-Werror=pessimizing-move
-Werror=redundant-move
-Werror=shadow