1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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" WARN="$WARN -Wendif-labels -Wstrict-prototypes"
fi fi
if test "$gccnum" -ge "304"; then
# try -Wunreachable-code on gcc 3.4
WARN="$WARN -Wunreachable-code"
fi
for flag in $CPPFLAGS; do for flag in $CPPFLAGS; do
case "$flag" in case "$flag" in
-I*) -I*)