mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 14:20:55 +00:00
Simplify addition of -Wdeclaration-after-statement to CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23523 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
dbe1e3f2ea
commit
5b21eb0177
4
configure
vendored
4
configure
vendored
@ -7395,9 +7395,7 @@ cat > $TMPC << EOF
|
||||
int main() { return 0; }
|
||||
EOF
|
||||
if test "$cc_vendor" = "gnu" ; then
|
||||
if cc_check -Wdeclaration-after-statement ; then
|
||||
CFLAGS="-Wdeclaration-after-statement $CFLAGS"
|
||||
fi
|
||||
cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS"
|
||||
cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS"
|
||||
cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user