summaryrefslogtreecommitdiff
path: root/m4/curl-compilers.m4
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-11-17 21:11:10 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-11-17 21:11:10 +0000
commit820011dedc4463c86d114e13f0754196f855b7e7 (patch)
tree65afe110dfaae47fd3d3fc22b020b0520b81c996 /m4/curl-compilers.m4
parentcdd6054e089ea5273dffe670b37d4b5c9c3ca562 (diff)
downloadcurl-820011dedc4463c86d114e13f0754196f855b7e7.tar.gz
Added more compiler warning options for gcc 4.3
Diffstat (limited to 'm4/curl-compilers.m4')
-rw-r--r--m4/curl-compilers.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index f01214d0f..85ba2a3e2 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.