Commit d04a276f authored by diego's avatar diego

Add -Wdeclaration-after-statement to CFLAGS on GCCs that support it.

patch by Michel Bardiaux < mbardiaux !! at !! mediaxim !! dot !! be >


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4804 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3d1b601b
......@@ -1029,6 +1029,17 @@ if $cc -msse -o $TMPO $TMPC 2> /dev/null ; then
builtin_vector=yes
fi
# Probe for -Wdeclaration-after-statement
if test "$cc" == "gcc"; then
cat > $TMPC << EOF
int main( void ) { return 0; }
EOF
if $cc -Wdeclaration-after-statement -Werror -o $TMPE $TMPC 2> /dev/null ; then
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
fi
fi
# dlopen/dlfcn.h probing
cat > $TMPC << EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment