]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Always add -Wdouble-promotion to dev mode flags
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Feb 2023 20:13:19 +0000 (21:13 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 4 Mar 2023 09:10:19 +0000 (10:10 +0100)
Clang 3.4 is not longer supported anyway.

cmake/DevModeWarnings.cmake

index f5f8e2a52f1bdf285ba161cc442db3e806ea0b87..1ada85f545caeb3889562b7f3f726786b3453b4b 100644 (file)
@@ -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()