From: Jonathan Wakely Date: Thu, 23 Feb 2023 17:37:59 +0000 (+0000) Subject: libstdc++: Suppress warnings about use of deprecated std::aligned_storage X-Git-Tag: basepoints/gcc-14~884 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae390479340ff49873c22cd7a301acbf67eca30b;p=thirdparty%2Fgcc.git libstdc++: Suppress warnings about use of deprecated std::aligned_storage libstdc++-v3/ChangeLog: * include/ext/aligned_buffer.h (__aligned_buffer): Add diagnostic pragmas. --- diff --git a/libstdc++-v3/include/ext/aligned_buffer.h b/libstdc++-v3/include/ext/aligned_buffer.h index 765d14684f2c..dc62dfc8741f 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