From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 845CD3858C66; Wed, 2 Nov 2022 12:56:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 845CD3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667393776; bh=Vrl0Ozubaz3FFLkvZEl2Si7ReU2IL8heX5v1T5LqSNg=; h=From:To:Subject:Date:From; b=UvZwuhPh7FqimTqIRSw72jimDMRLFPPlSoSuPII2lbJ2qiy/954SS2/h0ernvXKhA 5m1hM7FQEFOd9sU2bQ1qtv9lGLiz5Exgra2WJQLonYujjedve68z4ZqHrEzY6t/pbm 1edGwAsNL6rGboEgxEPLjM5xSHzAlmUX8CeokWkI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-3607] libstdc++: Ignore -Wignored-qualifiers warning in X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 0c86a667486362e8bc6a92e5d36acaac4242c59f X-Git-Newrev: cf35818a390e7cb4b1a4fa70c243ede59d6cbbac Message-Id: <20221102125616.845CD3858C66@sourceware.org> Date: Wed, 2 Nov 2022 12:56:14 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cf35818a390e7cb4b1a4fa70c243ede59d6cbbac commit r13-3607-gcf35818a390e7cb4b1a4fa70c243ede59d6cbbac Author: Jonathan Wakely Date: Tue Nov 1 11:17:35 2022 +0000 libstdc++: Ignore -Wignored-qualifiers warning in The warning is wrong here, the qualifier serves a purpose and is not ignored (c.f. PR c++/107492). libstdc++-v3/ChangeLog: * include/std/variant (__variant::_Multi_array::__untag_result): Use pragma to suppress warning. Diff: --- libstdc++-v3/include/std/variant | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index c234b54421e..ba8492b6985 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -831,10 +831,13 @@ namespace __variant : false_type { using element_type = _Tp; }; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wignored-qualifiers" template struct __untag_result : false_type { using element_type = void(*)(_Args...); }; +#pragma GCC diagnostic pop template struct __untag_result<__variant_cookie(*)(_Args...)>