aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-11-18 20:13:55 +0000
committerYang Tse <yangsita@gmail.com>2008-11-18 20:13:55 +0000
commitc36f0e71b6f6e2e04a5ad0ed96887c502452bef8 (patch)
tree6ca23526fe9e855e1d9f1e9435b9464c1c7c2a36
parenta028c69f48bb74e435d9313e152ce0b42ee351a8 (diff)
attempting to keep lines below 80 chars
-rw-r--r--ares/m4/cares-compilers.m49
-rw-r--r--m4/curl-compilers.m46
2 files changed, 12 insertions, 3 deletions
diff --git a/ares/m4/cares-compilers.m4 b/ares/m4/cares-compilers.m4
index 84f813bd1..ba5815d1a 100644
--- a/ares/m4/cares-compilers.m4
+++ b/ares/m4/cares-compilers.m4
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 45
+# serial 46
dnl CARES_CHECK_COMPILER
@@ -875,6 +875,13 @@ AC_DEFUN([CARES_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"
+ tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
+ tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
+ fi
+ #
fi
#
dnl Do not issue warnings for code in system include paths.
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 85ba2a3e2..d832a6fd8 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -22,7 +22,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 44
+# serial 46
dnl CURL_CHECK_COMPILER
@@ -883,7 +883,9 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
#
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"
+ 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"
fi
#
fi