aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-03-26 08:31:23 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-03-26 08:31:23 +0000
commit8c858b3787725ff707481ab469c85704f7d31b9b (patch)
tree39a026be804f919b47718c3f89a3d375effc9e0a /wiretap
parent29440eb4a91f78949f764edc1d68e6063db330da (diff)
Change the test for -Wdeclaration-after-statement slightly to make it work for me. Also redirect its stderr to /dev/null to avoid worrying users
svn path=/trunk/; revision=21208
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/configure.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/wiretap/configure.in b/wiretap/configure.in
index 898b244e99..6b66777d94 100644
--- a/wiretap/configure.in
+++ b/wiretap/configure.in
@@ -54,8 +54,7 @@ if test x$GCC == xyes ; then
# some versions of GCC support this directive
rm -rf conftest*
echo "int foo;" >>conftest.c
- $CC -c -o conftest.o conftest.c -Wdeclaration-after-statement
- if [ $? == 0 ] ; then
+ if $CC -c -o conftest.o conftest.c -Wdeclaration-after-statement > /dev/null 2>&1 ; then
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
AC_MSG_RESULT(yes)
else