Преглед на файлове

[Minor] Remove FP producing warning

tags/3.5
Vsevolod Stakhov преди 1 година
родител
ревизия
f89cb1d6ac
No account linked to committer's email address
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5
    0
      cmake/CompilerWarnings.cmake

+ 5
- 0
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")

Loading…
Отказ
Запис