summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2023-02-27 21:13:19 +0100
committerJoel Rosdahl <joel@rosdahl.net>2023-03-04 10:10:19 +0100
commit283dfe52b8eed5185f63ee7579b624e2b4750b73 (patch)
tree9f95232be11e5ddec663166b905aef7bb5c50d3d
parent35ab50c4ad632f1404312d08c1338bb83afbf077 (diff)
downloadccache-283dfe52b8eed5185f63ee7579b624e2b4750b73.tar.gz
chore: Always add -Wdouble-promotion to dev mode flags
Clang 3.4 is not longer supported anyway.
-rw-r--r--cmake/DevModeWarnings.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake/DevModeWarnings.cmake b/cmake/DevModeWarnings.cmake
index f5f8e2a5..1ada85f5 100644
--- a/cmake/DevModeWarnings.cmake
+++ b/cmake/DevModeWarnings.cmake
@@ -35,6 +35,7 @@ endmacro()
set(
_clang_gcc_warnings
-Wcast-align
+ -Wdouble-promotion
-Wextra
-Wnon-virtual-dtor
-Wnull-dereference
@@ -50,9 +51,6 @@ set(
# -Wformat=2
)
-# Tested separately as this is not supported by Clang 3.4.
-add_compile_flag_if_supported(_clang_gcc_warnings "-Wdouble-promotion")
-
if(WARNINGS_AS_ERRORS)
list(APPEND _clang_gcc_warnings -Werror)
endif()