From 748551dafba54ae0c9a43946dbe50c878a1be17d Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Sun, 24 Jan 2021 17:31:29 -0300 Subject: cmake: Enforce -Warray-bounds and -Wmissing-field-initializers globally --- src/CMakeLists.txt | 2 ++ src/video_core/CMakeLists.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3