From: Daniel Stenberg Date: Wed, 5 May 2004 06:59:27 +0000 (+0000) Subject: gcc 3.4 now uses the -Wunreachable-code option, I believe we can make older X-Git-Tag: curl-7_12_0~203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aae521d08646881a6299524a1bd367ec69fa00df;p=thirdparty%2Fcurl.git gcc 3.4 now uses the -Wunreachable-code option, I believe we can make older ones use this too... --- diff --git a/acinclude.m4 b/acinclude.m4 index 8c5d8cc3fa..3bfb11246f 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*)