summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2023-08-20 23:52:58 +0200
committerLiam <byteslice@airmail.cc>2023-08-26 01:22:31 +0200
commit32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c (patch)
tree9d194999e60da9f1d09b9ffe4fe6198baca7d8c4 /src
parentWarnings cleanup for GCC 13 and Clang 16 (diff)
downloadyuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar
yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.gz
yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.bz2
yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.lz
yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.xz
yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.tar.zst
yuzu-32c453a5f13f8e1dd11a91aa2de5e3fd6dc3e87c.zip
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 015b98d60..6068c7a1f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -114,17 +114,19 @@ else()
-Wno-attributes
-Wno-invalid-offsetof
-Wno-unused-parameter
-
- $<$<CXX_COMPILER_ID:Clang>:-Wno-braced-scalar-init>
- $<$<CXX_COMPILER_ID:Clang>:-Wno-unused-private-field>
- $<$<CXX_COMPILER_ID:Clang>:-Wno-nullability-completeness>
- $<$<CXX_COMPILER_ID:Clang>:-Werror=shadow-uncaptured-local>
- $<$<CXX_COMPILER_ID:Clang>:-Werror=implicit-fallthrough>
- $<$<CXX_COMPILER_ID:Clang>:-Werror=type-limits>
- $<$<CXX_COMPILER_ID:AppleClang>:-Wno-braced-scalar-init>
- $<$<CXX_COMPILER_ID:AppleClang>:-Wno-unused-private-field>
)
+ if (CMAKE_CXX_COMPILER_ID MATCHES Clang) # Clang or AppleClang
+ add_compile_options(
+ -Wno-braced-scalar-init
+ -Wno-unused-private-field
+ -Wno-nullability-completeness
+ -Werror=shadow-uncaptured-local
+ -Werror=implicit-fallthrough
+ -Werror=type-limits
+ )
+ endif()
+
if (ARCHITECTURE_x86_64)
add_compile_options("-mcx16")
add_compile_options("-fwrapv")