mirror of
https://github.com/curl/curl.git
synced 2026-08-11 14:31:27 +03:00
parent
ea897fddfc
commit
9daca35b13
2 changed files with 14 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue