mirror of
https://github.com/curl/curl.git
synced 2025-09-08 05:15:08 +03:00
parent
ea897fddfc
commit
9daca35b13
|
@ -249,6 +249,13 @@ if(PICKY_COMPILER)
|
|||
-Wxor-used-as-pow # clang 10.0 gcc 13.0
|
||||
)
|
||||
endif()
|
||||
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0)
|
||||
list(APPEND _picky_enable
|
||||
-Wleading-whitespace=spaces # gcc 15.0
|
||||
-Wtrailing-whitespace=any # gcc 15.0
|
||||
-Wunterminated-string-initialization # gcc 15.0
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#
|
||||
|
|
|
@ -1108,6 +1108,13 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [xor-used-as-pow])
|
||||
fi
|
||||
#
|
||||
dnl Only gcc 15 or later
|
||||
if test "$compiler_num" -ge "1500"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [leading-whitespace=spaces])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [trailing-whitespace=any])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unterminated-string-initialization])
|
||||
fi
|
||||
#
|
||||
fi
|
||||
#
|
||||
dnl Do not issue warnings for code in system include paths.
|
||||
|
|
Loading…
Reference in New Issue
Block a user