Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

cmake: Enforce -Wunused-function code-base wide

ReinUsesLisp4bd143ca76c5
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ee6f61f16e..4daec5350f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -69,6 +69,7 @@ else()
-Werror=reorder
-Werror=switch
-Werror=uninitialized
+ -Werror=unused-function
-Werror=unused-result
-Werror=unused-variable
-Wextra
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index 7f3db993c9..f7b9d7f86c 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -314,7 +314,6 @@ else()
-Werror=shadow
-Werror=switch
-Werror=type-limits
- -Werror=unused-function
-Werror=unused-variable
$<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess>