aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-05 06:59:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-05 06:59:27 +0000
commitaae521d08646881a6299524a1bd367ec69fa00df (patch)
treead9bff9ad9aafb20d0a0ff0e50f0c396e5381736
parent78e6508e2272c61d4f4985ab42639a65ec2482b8 (diff)
gcc 3.4 now uses the -Wunreachable-code option, I believe we can make older
ones use this too...
-rw-r--r--acinclude.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8c5d8cc3f..3bfb11246 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -697,6 +697,11 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
WARN="$WARN -Wendif-labels -Wstrict-prototypes"
fi
+ if test "$gccnum" -ge "304"; then
+ # try -Wunreachable-code on gcc 3.4
+ WARN="$WARN -Wunreachable-code"
+ fi
+
for flag in $CPPFLAGS; do
case "$flag" in
-I*)