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.
This commit is contained in:
Jean-Marc Lasgouttes 2015-11-02 15:45:27 +01:00
parent 5e0e676530
commit a0b9b9b678

View File

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