summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-18 23:54:51 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-18 23:54:51 +0000
commit6b1d86d213bf6cf253c99cabaa3ea32bc8f62dfb (patch)
treebc633a7dab606bc0a861918d0c894112162562b2
parent298ea20c97381048e94adaacd985255be959c018 (diff)
downloadmpv-6b1d86d213bf6cf253c99cabaa3ea32bc8f62dfb.tar.bz2
mpv-6b1d86d213bf6cf253c99cabaa3ea32bc8f62dfb.tar.xz
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
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 535973e7ee..517fc98a9a 100755
--- a/configure
+++ b/configure
@@ -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