aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2009-06-17 02:26:39 +0000
committerDan Fandrich <dan@coneharvesters.com>2009-06-17 02:26:39 +0000
commitd3e35d49ae4ffddea5539620578f0e00ef1f39f3 (patch)
treec24522b0bb0ddc53c75267d92e66c286a2927d7b /m4
parenta0474685c19371f25c9de92683ab38a3ff29ef56 (diff)
Added a few more compiler warning options for gcc.
Diffstat (limited to '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 2e55dc803..21ccc65e7 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -873,11 +873,16 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
fi
#
+ dnl Only gcc 4.2 or later
+ if test "$compiler_num" -ge "402"; then
+ tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
+ fi
dnl Only gcc 4.3 or later
if test "$compiler_num" -ge "403"; then
tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
+ tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
fi
#
fi