mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
Add -Wdeclaration-after-statement etc. only to gcc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23510 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
72d4c8cdbb
commit
c71ad8a3e0
2
configure
vendored
2
configure
vendored
@ -7394,11 +7394,13 @@ CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS"
|
||||
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 -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS"
|
||||
cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS"
|
||||
fi
|
||||
|
||||
|
||||
#this must be the last test to be performed or the ones following it will likely fail
|
||||
|
Loading…
Reference in New Issue
Block a user