aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-08 22:22:50 +0000
committerGravatar cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-08 22:22:50 +0000
commit5b21eb01773ddd537315c83b639fc64719e6a4fc (patch)
tree1629b41e80cd60033e782fd808302a58c3ddad5d /configure
parentdbe1e3f2ea39b508449d5386f4a660f754b14259 (diff)
Simplify addition of -Wdeclaration-after-statement to CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23523 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure b/configure
index 4b8fb929d1..00bc302f08 100755
--- a/configure
+++ b/configure
@@ -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