aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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*)