aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-20 10:11:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-20 10:11:50 +0000
commita49bebc74e03a265a0b50859120c5332a6ab55b9 (patch)
tree447b9420e376d94bd4c53c89746fd0156b894162 /configure.ac
parent8777ba7e42b342e13d9a39c5d6d331801cfab13b (diff)
Only use -Wstrict-prototypes with gcc 3.3 or later.
It is working with earlier versions, but when I use it with 3.0.3, I can't get it to ignore errors in "system headers" with -isystem so we get excessive amounts of warnings on SSL headers which is very annoying.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9307bf117..1ea69009c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1203,7 +1203,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
dnl we only like gcc less than 5.0, since if it is above that it is
dnl likely just a compiler that looks like gcc (like icc 8.0)!
dnl here's the standard setup
- WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-format-nonliteral -Wundef -Wpointer-arith -Wnested-externs -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
+ WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-format-nonliteral -Wundef -Wpointer-arith -Wnested-externs -Winline -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
dnl -Wcast-align is a bit too annoying ;-)
@@ -1215,7 +1215,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
dnl on i686-Linux as it gives us heaps with false positives
if test "$gccnum" -ge "303"; then
dnl gcc 3.3 and later
- WARN="$WARN -Wendif-labels"
+ WARN="$WARN -Wendif-labels -Wstrict-prototypes"
fi
fi