mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08: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:
parent
78e6508e22
commit
aae521d086
@ -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*)
|
||||
|
Loading…
Reference in New Issue
Block a user