]> git.lyx.org Git - features.git/commitdiff
Disable warning for deprecated functions in autoconf builds
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 2 Nov 2015 14:45:27 +0000 (15:45 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 2 Nov 2015 15:14:43 +0000 (16:14 +0100)
This gets rid in particular of warnings on auto_ptr. This flag should be removed when 2.3 development start and we switch to unique_ptr.

config/lyxinclude.m4

index ff38dadea4b4bfbc82bc533b41d60e383d88caec..30697d7352d9a141de819747ab545b698b3201d4 100644 (file)
@@ -298,7 +298,7 @@ if test x$GXX = xyes; then
   fi
   dnl Warnings are for preprocessor too
   if test x$enable_warnings = xyes ; then
-      AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra"
+      AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra -Wno-deprecated-declarations"
   fi
   case $gxx_version in
       2.*|3.*) AC_ERROR([gcc 4.x is required]);;