mirror of
https://github.com/curl/curl.git
synced 2026-07-23 03:07:15 +03:00
Add -Wdeclaration-after-statement to gcc to detect accidental C99-style
variable declarations.
This commit is contained in:
parent
4922904991
commit
e81d4ac8c8
1 changed files with 2 additions and 2 deletions
|
|
@ -766,8 +766,8 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
|
|||
fi
|
||||
|
||||
if test "$gccnum" -ge "304"; then
|
||||
# try -Wunreachable-code on gcc 3.4
|
||||
WARN="$WARN -Wunreachable-code"
|
||||
# try these on gcc 3.4
|
||||
WARN="$WARN -Wunreachable-code -Wdeclaration-after-statement"
|
||||
fi
|
||||
|
||||
for flag in $CPPFLAGS; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue