The -Wdeclaration-after-statement test needs a C program.

Noticed by Carl Eugen Hoyos.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22737 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-03-18 23:54:51 +00:00
parent 298ea20c97
commit 6b1d86d213
1 changed files with 3 additions and 0 deletions

3
configure vendored
View File

@ -7416,6 +7416,9 @@ fi
CXXFLAGS="-I.. $CFLAGS -D__STDC_LIMIT_MACROS"
cat > $TMPC << EOF
int main() { return 0; }
EOF
if cc_check -Wdeclaration-after-statement ; then
CFLAGS="-Wdeclaration-after-statement $CFLAGS"
fi