2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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]].
This commit is contained in:
ReinUsesLisp 2021-01-15 02:59:22 -03:00
parent 3e03391a49
commit 71264ce9a7

View file

@ -314,6 +314,7 @@ else()
-Werror=shadow -Werror=shadow
-Werror=switch -Werror=switch
-Werror=type-limits -Werror=type-limits
-Werror=unused-function
-Werror=unused-variable -Werror=unused-variable
$<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess> $<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess>