summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-01-27 10:18:30 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-01-27 10:19:47 +0000
commit2bffd7e1a94c5d96a1121ae2243c3615e1aa7766 (patch)
tree232a2c990795c57247fc2e5f396677a9cc6227bd
parentb57bae0be3df241220b1fba3120e2f50261258e5 (diff)
downloadgnome-common-2bffd7e1a94c5d96a1121ae2243c3615e1aa7766.tar.gz
macros2: Deprecate GNOME_CXX_WARNINGS
Just as for GNOME_COMPILE_WARNINGS, GNOME_CXX_WARNINGS has been deprecated in favour of AX_COMPILER_FLAGS. See commit b57bae0be3df241220b1fba3120e2f50261258e5 for details. https://bugzilla.gnome.org/show_bug.cgi?id=729406
-rw-r--r--macros2/gnome-compiler-flags.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/macros2/gnome-compiler-flags.m4 b/macros2/gnome-compiler-flags.m4
index 810f847..49ebb95 100644
--- a/macros2/gnome-compiler-flags.m4
+++ b/macros2/gnome-compiler-flags.m4
@@ -127,7 +127,7 @@ See: http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html#ax_comp
dnl For C++, do basically the same thing.
-AC_DEFUN([GNOME_CXX_WARNINGS],[
+AU_DEFUN([GNOME_CXX_WARNINGS],[
AC_ARG_ENABLE(cxx-warnings,
AS_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
[Turn on compiler warnings.]),,
@@ -178,4 +178,7 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
AC_SUBST(WARN_CXXFLAGS)
-])
+],
+[[$0: This macro is deprecated. You should use AX_COMPILER_FLAGS instead and
+eliminate use of --enable-iso-cxx.
+See: http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html#ax_compiler_flags]])