configure: Drop -Wdeclaration-after-statement.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 28 Dec 2014 16:49:36 +0000 (08:49 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 28 Dec 2014 16:49:36 +0000 (08:49 -0800)
We keep getting new instances of this warning in the tree, and it's
not really necessary these days since even MSVC supports mid-block
declarations now.

acinclude.m4
configure.ac

index 244a7468486648851e315be8c06fd1dec42f1627..c5cbc182a84868de43c1ec86d463fb9a21ca5c61 100644 (file)
@@ -61,13 +61,6 @@ AC_DEFUN([PSPP_CHECK_CC_OPTION],
   fi
 ])
 
-dnl PSPP_ENABLE_OPTION([OPTION])
-dnl Check whether the given C compiler OPTION is accepted.
-dnl If so, add it to CFLAGS.
-dnl Example: PSPP_ENABLE_OPTION([-Wdeclaration-after-statement])
-AC_DEFUN([PSPP_ENABLE_OPTION], 
-  [PSPP_CHECK_CC_OPTION([$1], [CFLAGS="$CFLAGS $1"])])
-
 dnl Check for readline and history libraries.
 
 dnl Modified for PSPP, based on readline.m4 serial 3 from
index 50bc5f2654a89000044d81ef7264a67583b6fd7d..7e976a8ca62d9857a80618fbf8036fc86be31b53 100644 (file)
@@ -20,7 +20,6 @@ PKG_PROG_PKG_CONFIG
 m4_pattern_forbid([PKG_CHECK_MODULES])
 PSPP_CHECK_CLICKSEQUENCE
 
-PSPP_ENABLE_OPTION(-Wdeclaration-after-statement)
 PSPP_ENABLE_WERROR
 
 AM_CONDITIONAL(cc_is_gcc, test x"$GCC" = x"yes" )