mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
bf3027c87b
commit
9f23a10ae0
11
configure
vendored
11
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user