On 9/1/20 4:52 AM, Reuben Thomas wrote:
I see these two warnings were removed from manywarnings for gcc 9 in commit
63e719c9c. g++ 9 seems to complain about them just the same, so should they
be removed from manywarnings-c++ too?

Sounds good to me. I installed the attached.

manywarnings-c++.m4 needs a bunch of other changes too, but one step at a time.
>From b58bf6ee39a6a114550a6bb68e7db5262c17f8bf Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Tue, 1 Sep 2020 11:14:33 -0700
Subject: [PATCH] manywarnings: remove -Wchkp and -Wabi from C++ too

Suggested by Reuben Thomas in:
https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
At some point somebody should merge the many other manywarnings-c.m4
changes into manywarnings-c++.m4 too, e.g.,
2020-07-02T00:00:[email protected].
* m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
Remove -Wchkp, -Wabi.
---
 ChangeLog              | 11 +++++++++++
 m4/manywarnings-c++.m4 |  2 --
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c30c56bd8..92320c5c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2020-09-01  Paul Eggert  <[email protected]>
+
+	manywarnings: remove -Wchkp and -Wabi from C++ too
+	Suggested by Reuben Thomas in:
+	https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
+	At some point somebody should merge the many other manywarnings-c.m4
+	changes into manywarnings-c++.m4 too, e.g.,
+	2020-07-02T00:00:[email protected].
+	* m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
+	Remove -Wchkp, -Wabi.
+
 2020-08-30  Bruno Haible  <[email protected]>
 
 	strerrorname_np: Add tests.
diff --git a/m4/manywarnings-c++.m4 b/m4/manywarnings-c++.m4
index a35737ced..8b49e03a2 100644
--- a/m4/manywarnings-c++.m4
+++ b/m4/manywarnings-c++.m4
@@ -79,7 +79,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC_CXX_IMPL],
   gl_manywarn_set=
   for gl_manywarn_item in \
     -W \
-    -Wabi \
     -Wabi-tag \
     -Waddress \
     -Waggressive-loop-optimizations \
@@ -89,7 +88,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC_CXX_IMPL],
     -Wbuiltin-macro-redefined \
     -Wcast-align \
     -Wchar-subscripts \
-    -Wchkp \
     -Wclobbered \
     -Wcomment \
     -Wcomments \
-- 
2.17.1

Reply via email to