diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-02-11 12:33:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-02-11 12:33:25 +0000 |
commit | f89cb1d6acbdfde6aacf9878eacb3faf6a22a1d3 (patch) | |
tree | 74753c3082dbb29dfe32b76b451ece42020639ae /cmake | |
parent | 41a93a39b05c8fc046299c2ac6baec7d91cb2947 (diff) | |
download | rspamd-f89cb1d6acbdfde6aacf9878eacb3faf6a22a1d3.tar.gz rspamd-f89cb1d6acbdfde6aacf9878eacb3faf6a22a1d3.zip |
[Minor] Remove FP producing warning
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CompilerWarnings.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 629bb6ee1..9092457de 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -20,6 +20,8 @@ CHECK_C_COMPILER_FLAG(-Wimplicit-fallthrough SUPPORT_WIMPLICIT_FALLTHROUGH) # Special check for deprecated declarations, as since OpenSSL 3.0 they # just poison output for no good reason CHECK_C_COMPILER_FLAG(-Wdeprecated-declarations SUPPORT_WDEPRECATED_DECLARATIONS) +# Disable -Wsuggest-attribute=format: it is too noisy with FPs around fmt C++ library +CHECK_C_COMPILER_FLAG(-Wsuggest-attribute SUPPORT_WSUGGEST_ATTRIBUTE) IF(SUPPORT_WEXTRA) ADD_COMPILE_OPTIONS("-Wextra") @@ -78,6 +80,9 @@ ENDIF(SUPPORT_WMISSING_NORETURN) IF(SUPPORT_WMISSING_FORMAT_ATTRIBUTE) ADD_COMPILE_OPTIONS("-Wmissing-format-attribute") ENDIF(SUPPORT_WMISSING_FORMAT_ATTRIBUTE) +IF(SUPPORT_WSUGGEST_ATTRIBUTE) + ADD_COMPILE_OPTIONS("-Wno-suggest-attribute=format") +ENDIF() IF(SUPPORT_WDEPRECATED_DECLARATIONS) ADD_COMPILE_OPTIONS("-Wno-deprecated-declarations") |