From 55d8c2cfb3f1099f73fcad524d638d42104ad17f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 28 Dec 2014 08:49:36 -0800 Subject: [PATCH] configure: Drop -Wdeclaration-after-statement. 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 | 7 ------- configure.ac | 1 - 2 files changed, 8 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 244a746848..c5cbc182a8 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 diff --git a/configure.ac b/configure.ac index 50bc5f2654..7e976a8ca6 100644 --- a/configure.ac +++ b/configure.ac @@ -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" ) -- 2.30.2