Commit 9f23a10a authored by Michel Bardiaux's avatar Michel Bardiaux Committed by Diego Biurrun
Browse files

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

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

Originally committed as revision 4804 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent bf3027c8
...@@ -1029,6 +1029,17 @@ if $cc -msse -o $TMPO $TMPC 2> /dev/null ; then ...@@ -1029,6 +1029,17 @@ if $cc -msse -o $TMPO $TMPC 2> /dev/null ; then
builtin_vector=yes builtin_vector=yes
fi 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 # dlopen/dlfcn.h probing
cat > $TMPC << EOF 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