-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()
#
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.