From: Joel Rosdahl Date: Mon, 27 Feb 2023 20:13:19 +0000 (+0100) Subject: chore: Always add -Wdouble-promotion to dev mode flags X-Git-Tag: v4.8~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=283dfe52b8eed5185f63ee7579b624e2b4750b73;p=thirdparty%2Fccache.git chore: Always add -Wdouble-promotion to dev mode flags Clang 3.4 is not longer supported anyway. --- diff --git a/cmake/DevModeWarnings.cmake b/cmake/DevModeWarnings.cmake index f5f8e2a52..1ada85f54 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()