Autotools: restore deprecation warning

-Wno-deprecated-declarations was added at 314a121c.
This commit is contained in:
Guillaume Munch 2016-06-02 18:00:22 +01:00
parent 557975a8de
commit a73f2e6eb6

View File

@ -373,12 +373,7 @@ if test x$GXX = xyes; then
fi fi
LYX_CXX_CXX11 LYX_CXX_CXX11
if test $lyx_use_cxx11 = yes; then if test $lyx_use_cxx11 = no; then
if test x$GXX = xyes; then
dnl We still use auto_ptr, which is obsoleted. Shut off the warnings.
AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-declarations"
fi
else
AC_ERROR([A C++11 compatible compiler is required]) AC_ERROR([A C++11 compatible compiler is required])
fi fi
LYX_CXX_USE_REGEX([$cxx11_flags]) LYX_CXX_USE_REGEX([$cxx11_flags])