فهرست منبع

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]].
ReinUsesLisp 5 سال پیش
والد
کامیت
71264ce9a7
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/video_core/CMakeLists.txt

+ 1 - 0
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>