Disable deprecated-copy warning with clang10

This was already done for gcc9 and saves tons of warnings.

Note that the warning in Qt are gone with Qt5.13, so eventually we
will have to get rid of our own copy issues.
This commit is contained in:
Jean-Marc Lasgouttes 2020-04-28 13:16:45 +02:00
parent 62c77c2786
commit e9e8069b17

View File

@ -408,10 +408,11 @@ 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"
case $gxx_version in case $gxx_version in
9.*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra" 9.*|clang-10*)
AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy";; AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy";;
*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra";; *);;
esac esac
fi fi
case $gxx_version in case $gxx_version in