diff --git a/CHANGES b/CHANGES index a2edf54936588bb00358bbc69b09cbc5aa9c0384..b63249927284f5eb7356e78170ef6a400de970e0 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,9 @@ Changelog +Daniel Fandrich (17 Nov 2008) +- Added more compiler warning options for gcc 4.3 + Yang Tse (17 Nov 2008) - Fix a remaining problem in the inet_pton() runtime configure check. And fix internal Curl_inet_pton() failures to reject certain malformed literals. diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index f01214d0f10993c10def1460d2a1f9a844e8f017..85ba2a3e2fd18b026934dff186b6641983e28051 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -881,6 +881,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" fi # + dnl Only gcc 4.3 or later + if test "$compiler_num" -ge "403"; then + tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration -Wmissing-parameter-type -Wempty-body -Wclobbered -Wignored-qualifiers" + fi + # fi # dnl Do not issue warnings for code in system include paths.