X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=acinclude.m4;h=3e16c68879395e114d6c9a72027997d68aafe40f;hb=464cfa22be730169c6a7f3026af3ee29e93d35e1;hp=244a7468486648851e315be8c06fd1dec42f1627;hpb=0d2f7b51f72f3f2f830a720e0dd71096e0290c72;p=pspp diff --git a/acinclude.m4 b/acinclude.m4 index 244a746848..3e16c68879 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,4 +1,4 @@ -dnl Copyright (C) 2005, 2006, 2007, 2009, 2014 Free Software Foundation, Inc. +dnl Copyright (C) 2005, 2006, 2007, 2009, 2014, 2015 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -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 @@ -307,6 +300,6 @@ AC_DEFUN([PSPP_ENABLE_WERROR], [], [enable_Werror=no]) AC_CONFIG_COMMANDS_PRE( [if test "X$enable_Werror" = Xyes; then - CFLAGS="$CFLAGS -Werror" + CFLAGS="$CFLAGS -Werror -Wno-error=deprecated-declarations" fi])])