summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-01-02 12:11:54 +0100
committerAlexander Harkness <me@bearbin.net>2022-01-13 00:48:19 +0100
commit1a310981826b800b1a4a405eaef0612cf7b1cb70 (patch)
tree869bc47f6ef261a4f7e9359b2808d685cc24c366 /SetFlags.cmake
parentSuspicious packets: give 'em the silent treatment (#5375) (diff)
downloadcuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.gz
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.bz2
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.lz
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.xz
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.zst
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.zip
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 869307d91..51b998247 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -158,7 +158,7 @@ function(set_exe_flags TARGET)
# TODO: actually fix the warnings instead of disabling them
# or at least disable on a file-level basis:
-Wno-missing-noreturn -Wno-padded -Wno-implicit-fallthrough
- -Wno-double-promotion
+ -Wno-double-promotion -Wno-reserved-identifier
# This is a pretty useless warning, we've already got -Wswitch which is what we need:
-Wno-switch-enum
@@ -169,7 +169,7 @@ function(set_exe_flags TARGET)
-Wno-documentation-unknown-command -Wno-reserved-id-macro -Wno-error=unused-command-line-argument
)
- if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 7)
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 7 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13)
target_compile_options(
${TARGET} PRIVATE