mirror of https://github.com/mpv-player/mpv
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:
parent
298ea20c97
commit
6b1d86d213
|
@ -7416,6 +7416,9 @@ fi
|
||||||
|
|
||||||
CXXFLAGS="-I.. $CFLAGS -D__STDC_LIMIT_MACROS"
|
CXXFLAGS="-I.. $CFLAGS -D__STDC_LIMIT_MACROS"
|
||||||
|
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
int main() { return 0; }
|
||||||
|
EOF
|
||||||
if cc_check -Wdeclaration-after-statement ; then
|
if cc_check -Wdeclaration-after-statement ; then
|
||||||
CFLAGS="-Wdeclaration-after-statement $CFLAGS"
|
CFLAGS="-Wdeclaration-after-statement $CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue