public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libstdc++: remove an ignored qualifier on function return type
@ 2020-08-24 11:26 Krystian Kuźniarek
  2020-08-24 11:38 ` Jonathan Wakely
  0 siblings, 1 reply; 6+ messages in thread
From: Krystian Kuźniarek @ 2020-08-24 11:26 UTC (permalink / raw)
  To: gcc-patches, libstdc++

Hi,

First of all, sorry, I must have sent it as quoted-printable so spaces and
tabs are preserved.

A description of the problem/bug and how your patch addresses it:
I've got a small patch for -Wignored-qualifiers in system headers.

Testcases:
N/A, it's only a warning.

ChangeLog:
Sorry, contrib/mklog.py didn't quite work for me.
For some reason after instruction in line 129: "diff = PatchSet(data)" my
"diff" variable is always empty.

Bootstrapping and testing:
Tested that manually by recompling GCC, unfolding all headers with
`#include <stdc++.h>` and compiling what's been included by it.

The patch itself:

diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant
index eb3d6779205..e8fcb57a401 100644
--- a/libstdc++-v3/include/std/variant
+++ b/libstdc++-v3/include/std/variant
@@ -808,7 +808,7 @@ namespace __variant
 	{ using element_type = _Tp; };

       template <typename... _Args>
-	struct __untag_result<const void(*)(_Args...)>
+	struct __untag_result<void(*)(_Args...)>
 	: false_type
 	{ using element_type = void(*)(_Args...); };



Best regards,
Krystian

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-31 12:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 11:26 [PATCH] libstdc++: remove an ignored qualifier on function return type Krystian Kuźniarek
2020-08-24 11:38 ` Jonathan Wakely
2020-08-28  6:55   ` Krystian Kuźniarek
2020-08-28  7:16     ` Krystian Kuźniarek
2020-10-29 17:18     ` Jonathan Wakely
2020-10-31 12:18       ` Krystian Kuźniarek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).