gcc 3.4 now uses the -Wunreachable-code option, I believe we can make older

ones use this too...
This commit is contained in:
Daniel Stenberg 2004-05-05 06:59:27 +00:00
parent 78e6508e22
commit aae521d086

View File

@ -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*)