]> The Tcpdump Group git mirrors - tcpdump/blobdiff - configure
Don't warn about declarations after statements.
[tcpdump] / configure
index 19259b412341ce218c93f2a0047ed462b7c0e1cb..b76db5207c21eb9321f370ff49998bfbef5a4cdc 100755 (executable)
--- a/configure
+++ b/configure
@@ -6920,49 +6920,6 @@ fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
 
-       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
-$as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
-       save_CFLAGS="$CFLAGS"
-       if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
-       then
-           CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
-       elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
-       then
-           CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
-       elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
-       then
-           CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
-       else
-           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
-       fi
-       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-int
-main ()
-{
-return 0
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-               CFLAGS="$save_CFLAGS"
-               V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
-
-else
-
-               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-               CFLAGS="$save_CFLAGS"
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
        save_CFLAGS="$CFLAGS"