From 71264ce9a799993d57a33b552070d22f5f6aeae5 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Fri, 15 Jan 2021 02:59:22 -0300 Subject: [PATCH] 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]]. --- src/video_core/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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 $<$:-Werror=class-memaccess>