mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 05:09:58 +00:00
CMakeLists: Enable checks on Clang
Enables shadow-uncaptured-locals and implicit-fallthrough for Clang. implicit-fallthrough is not enabled by default in -Wall or -Wextra, and shadow-uncaptured-local doesn't seem to be enabled by default by -Wshadow, even though GCC has both of these by their respective cases.
This commit is contained in:
parent
47938541c2
commit
2007d0e4a0
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ else()
|
||||||
|
|
||||||
$<$<CXX_COMPILER_ID:Clang>:-Wno-braced-scalar-init>
|
$<$<CXX_COMPILER_ID:Clang>:-Wno-braced-scalar-init>
|
||||||
$<$<CXX_COMPILER_ID:Clang>:-Wno-unused-private-field>
|
$<$<CXX_COMPILER_ID:Clang>:-Wno-unused-private-field>
|
||||||
|
$<$<CXX_COMPILER_ID:Clang>:-Werror=shadow-uncaptured-local>
|
||||||
|
$<$<CXX_COMPILER_ID:Clang>:-Werror=implicit-fallthrough>
|
||||||
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-braced-scalar-init>
|
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-braced-scalar-init>
|
||||||
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-unused-private-field>
|
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-unused-private-field>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue