summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-01-15 02:59:22 -0300
committerGravatar ReinUsesLisp2021-01-15 02:59:25 -0300
commit71264ce9a799993d57a33b552070d22f5f6aeae5 (patch)
treeeb738b98ea6e5dc1dba0c0694604934505745e0c
parentvk_buffer_cache: Remove unused function (diff)
downloadyuzu-71264ce9a799993d57a33b552070d22f5f6aeae5.tar.gz
yuzu-71264ce9a799993d57a33b552070d22f5f6aeae5.tar.xz
yuzu-71264ce9a799993d57a33b552070d22f5f6aeae5.zip
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()
314 -Werror=shadow 314 -Werror=shadow
315 -Werror=switch 315 -Werror=switch
316 -Werror=type-limits 316 -Werror=type-limits
317 -Werror=unused-function
317 -Werror=unused-variable 318 -Werror=unused-variable
318 319
319 $<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess> 320 $<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess>