diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-05 06:59:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-05 06:59:27 +0000 |
commit | aae521d08646881a6299524a1bd367ec69fa00df (patch) | |
tree | ad9bff9ad9aafb20d0a0ff0e50f0c396e5381736 | |
parent | 78e6508e2272c61d4f4985ab42639a65ec2482b8 (diff) |
gcc 3.4 now uses the -Wunreachable-code option, I believe we can make older
ones use this too...
-rw-r--r-- | acinclude.m4 | 5 |
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*) |