configure: With -Werror, add -Wno-error=deprecated-declarations.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 21 Jun 2015 17:05:29 +0000 (10:05 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 21 Jun 2015 17:05:29 +0000 (10:05 -0700)
The PSPP code for GTK+3 still uses several deprecated interfaces, so
using -Werror without -Wno-error=deprecated-declarations prevents the tree
from compiling.

I hope that this is a temporary measure.

acinclude.m4

index c5cbc182a84868de43c1ec86d463fb9a21ca5c61..3e16c68879395e114d6c9a72027997d68aafe40f 100644 (file)
@@ -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.
@@ -300,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])])