and above -> or higher

This commit is contained in:
Viktor Szakats 2026-04-22 21:08:47 +02:00
parent 69e89374b2
commit 9e5ead016b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -215,7 +215,7 @@ if(PICKY_COMPILER)
if((CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0) OR
(CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 12))
list(APPEND _picky_enable
-Wimplicit-fallthrough # clang 4.0 gcc 7.0 appleclang 9.0 # We do silencing for clang 10.0 and above only
-Wimplicit-fallthrough # clang 4.0 gcc 7.0 appleclang 9.0 # We do silencing for clang 10.0 or higher only
-Wxor-used-as-pow # clang 10.0 gcc 13.0 appleclang 12.0
)
endif()

View file

@ -925,7 +925,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
dnl clang 10 or higher
if test "$compiler_num" -ge "1000"; then
tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" # we have silencing markup for clang 10.0 and above only
tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" # we have silencing markup for clang 10.0 or higher only
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [xor-used-as-pow])
fi