From: Jean-Marc Lasgouttes Date: Mon, 2 Nov 2015 14:45:27 +0000 (+0100) Subject: Disable warning for deprecated functions in autoconf builds X-Git-Tag: 2.2.0alpha1~95 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a0b9b9b678fececb590ae61d6c369e059836fc79;p=features.git Disable warning for deprecated functions in autoconf builds 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. --- diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index ff38dadea4..30697d7352 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -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]);;