[gnome-common] macros2: Deprecate GNOME_CXX_WARNINGS



commit 2bffd7e1a94c5d96a1121ae2243c3615e1aa7766
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Tue Jan 27 10:18:30 2015 +0000

    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

 macros2/gnome-compiler-flags.m4 |    7 +++++--
 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]])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]