Skip to content
Snippets Groups Projects
Commit e81d4ac8 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Add -Wdeclaration-after-statement to gcc to detect accidental C99-style

variable declarations.
parent 49229049
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment