1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-16 03:45:23 +00:00

Add -std=gnu99 to gcc CFLAGS if supported. This sets appropriate #defines to

avoid a bunch of implicit declaration warnings in (g)libc headers that define
certain functions conditional to those #defines.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27240 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-07-08 16:11:58 +00:00
parent 3e1c882458
commit 86f66849c1

1
configure vendored
View File

@ -7542,6 +7542,7 @@ cat > $TMPC << EOF
int main(void) { return 0; }
EOF
if test "$cc_vendor" = "gnu" ; then
cc_check -std=gnu99 && CFLAGS="-std=gnu99 $CFLAGS"
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"