mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Add -Wdeclaration-after-statement to gcc to detect accidental C99-style
variable declarations.
This commit is contained in:
parent
4922904991
commit
e81d4ac8c8
@ -766,8 +766,8 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$gccnum" -ge "304"; then
|
if test "$gccnum" -ge "304"; then
|
||||||
# try -Wunreachable-code on gcc 3.4
|
# try these on gcc 3.4
|
||||||
WARN="$WARN -Wunreachable-code"
|
WARN="$WARN -Wunreachable-code -Wdeclaration-after-statement"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for flag in $CPPFLAGS; do
|
for flag in $CPPFLAGS; do
|
||||||
|
Loading…
Reference in New Issue
Block a user