summaryrefslogtreecommitdiff
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
commit71264ce9a799993d57a33b552070d22f5f6aeae5 (patch)
treeeb738b98ea6e5dc1dba0c0694604934505745e0c
parent3e03391a49e6a9e186ac3e7029388036f59b7e42 (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]].
-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 f7b9d7f86..7f3db993c 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>