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.
This commit is contained in:
parent
fdd9154069
commit
678d012c2c
|
@ -278,7 +278,9 @@ else()
|
||||||
-Wno-error=sign-conversion
|
-Wno-error=sign-conversion
|
||||||
-Werror=switch
|
-Werror=switch
|
||||||
-Werror=unused-variable
|
-Werror=unused-variable
|
||||||
-Werror=unused-but-set-variable
|
|
||||||
-Werror=class-memaccess
|
$<$<CXX_COMPILER_ID:GNU>:-Werror=class-memaccess>
|
||||||
|
$<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
|
||||||
|
$<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
Reference in New Issue