From a0b9b9b678fececb590ae61d6c369e059836fc79 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 2 Nov 2015 15:45:27 +0100 Subject: [PATCH] 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. --- config/lyxinclude.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);; -- 2.39.5