[PATCH] libstdc++: remove an ignored qualifier on function return type

Krystian Kuźniarek krystian.kuzniarek@gmail.com
Mon Aug 24 11:26:48 GMT 2020


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


More information about the Gcc-patches mailing list