From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id B510D3858284; Fri, 24 Feb 2023 14:25:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B510D3858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677248707; bh=OXOLrLjiuqzXdMZdXTwc9fJifE5NF0sdn3y7a5G8amA=; h=From:To:Subject:Date:From; b=WdoPq3zDOwSsr0v007usAvCWMKavfIlIauVEmgS48xKb2XOGZv102MIiVi4PJjVgX avLFhlh4HVa5qnT7BuMl3t9BNuUss9bnuGAgkU5CXcK0WsYlCH0eiytpFa5dyeYBzV V8NcXmK4AYemFO7naP5BMeVbgy/mHNJUMh9jIRZI= 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-6323] libstdc++: Suppress warnings about use of deprecated std::aligned_storage X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: f30421fa72f31d6b406ebe531464433b446ac2cf X-Git-Newrev: ae390479340ff49873c22cd7a301acbf67eca30b Message-Id: <20230224142507.B510D3858284@sourceware.org> Date: Fri, 24 Feb 2023 14:25:07 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ae390479340ff49873c22cd7a301acbf67eca30b commit r13-6323-gae390479340ff49873c22cd7a301acbf67eca30b Author: Jonathan Wakely Date: Thu Feb 23 17:37:59 2023 +0000 libstdc++: Suppress warnings about use of deprecated std::aligned_storage libstdc++-v3/ChangeLog: * include/ext/aligned_buffer.h (__aligned_buffer): Add diagnostic pragmas. Diff: --- libstdc++-v3/include/ext/aligned_buffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libstdc++-v3/include/ext/aligned_buffer.h b/libstdc++-v3/include/ext/aligned_buffer.h index 765d14684f2..dc62dfc8741 100644 --- a/libstdc++-v3/include/ext/aligned_buffer.h +++ b/libstdc++-v3/include/ext/aligned_buffer.h @@ -81,6 +81,8 @@ namespace __gnu_cxx template using __aligned_buffer = __aligned_membuf<_Tp>; #else +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // Similar to __aligned_membuf but aligned for complete objects, not members. // This type is used in , , // and , but ideally they would use __aligned_membuf @@ -118,6 +120,7 @@ namespace __gnu_cxx _M_ptr() const noexcept { return static_cast(_M_addr()); } }; +#pragma GCC diagnostic pop #endif } // namespace