aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-15 02:59:22 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-15 02:59:25 -0300
commit4d9ee82fca48edf3e89b43dd33cecab44b3e22cf (patch)
treeeb738b98ea6e5dc1dba0c0694604934505745e0c /src
parentbf1d31789284e3dd7bcee818b9ed7ee7c4ce7ce2 (diff)
video_core: Enforce -Wunused-function
Stops us from merging code with unused functions in the future. If something is invoked behind conditionally evaluated code in a way that the language can't see it (e.g. preprocessor macros), the potentially unused function should use [[maybe_unused]].
Diffstat (limited to 'src')
-rw-r--r--src/video_core/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index f7b9d7f86c..7f3db993c9 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -314,6 +314,7 @@ else()
-Werror=shadow
-Werror=switch
-Werror=type-limits
+ -Werror=unused-function
-Werror=unused-variable
$<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess>