]> git.lyx.org Git - lyx.git/commitdiff
Disable deprecated-copy warning with clang10 and gcc10
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 28 Apr 2020 11:16:45 +0000 (13:16 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 30 Apr 2020 16:02:06 +0000 (18:02 +0200)
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 e9e8069b170ef3128402bc6e6f657339da1760a2)
(cherry picked from commit db5021c42eb5828c3fa0fd786b14eafcf9fed52f)

config/lyxinclude.m4
status.23x

index 164b2f7a89ef24cfbb80a52ba2431a3c24919ad0..59421ae2251f1db5efad7c8a948ac95860cc8ee4 100644 (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
index 098a40013e437596281c864608bb3c45050963c6..2f045e82dda6b704b8196a466086faf4f3dca8d0 100644 (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.