summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2020-10-20 19:24:28 -0400
committerGravatar Lioncash2020-10-20 20:28:25 -0400
commit678d012c2c3ce7b6bac136576d15f23b2d4b05a8 (patch)
treea3d71985a6e5456e4efb3cf662460fc29d261cf9
parentkernel: Fix build with recent compiler flag changes (diff)
downloadyuzu-678d012c2c3ce7b6bac136576d15f23b2d4b05a8.tar.gz
yuzu-678d012c2c3ce7b6bac136576d15f23b2d4b05a8.tar.xz
yuzu-678d012c2c3ce7b6bac136576d15f23b2d4b05a8.zip
video_core: Conditially activate relevant compiler warnings
These compiler flags aren't shared with clang, so specifying these flags unconditionally can lead to a bit of warning spam. While we're in the area, we can also enable -Wunused-but-set-parameter given this is almost always a bug.
Diffstat (limited to '')
-rw-r--r--src/video_core/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index 3df54816d..77ebac19f 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -278,7 +278,9 @@ else()
278 -Wno-error=sign-conversion 278 -Wno-error=sign-conversion
279 -Werror=switch 279 -Werror=switch
280 -Werror=unused-variable 280 -Werror=unused-variable
281 -Werror=unused-but-set-variable 281
282 -Werror=class-memaccess 282 $<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess>
283 $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
284 $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
283 ) 285 )
284endif() 286endif()