Disable deprecated-copy warning with clang10 and gcc10

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.

(cherry picked from commit e9e8069b17)
(cherry picked from commit db5021c42e)
This commit is contained in:
Jean-Marc Lasgouttes 2020-04-28 13:16:45 +02:00
parent e47834104a
commit 7898e07412
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -144,3 +144,4 @@ What's new
- Download dictionary and thesaurus files, on Windows, from our SVN repo (bug 11192).
- Avoid many warnings with g++ 10 and clang++ 10.