aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-02-23 17:37:59 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-02-24 14:23:35 +0000
commitae390479340ff49873c22cd7a301acbf67eca30b (patch)
treec7a3bf12f9b9a94dd1d64d81c5aaa7b5839f91cf
parentf30421fa72f31d6b406ebe531464433b446ac2cf (diff)
downloadgcc-ae390479340ff49873c22cd7a301acbf67eca30b.zip
gcc-ae390479340ff49873c22cd7a301acbf67eca30b.tar.gz
gcc-ae390479340ff49873c22cd7a301acbf67eca30b.tar.bz2
libstdc++: Suppress warnings about use of deprecated std::aligned_storage
libstdc++-v3/ChangeLog: * include/ext/aligned_buffer.h (__aligned_buffer): Add diagnostic pragmas.
-rw-r--r--libstdc++-v3/include/ext/aligned_buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/include/ext/aligned_buffer.h b/libstdc++-v3/include/ext/aligned_buffer.h
index 765d146..dc62dfc 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<typename _Tp>
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 <forward_list>, <future>, <bits/shared_ptr_base.h>
// and <bits/hashtable_policy.h>, but ideally they would use __aligned_membuf
@@ -118,6 +120,7 @@ namespace __gnu_cxx
_M_ptr() const noexcept
{ return static_cast<const _Tp*>(_M_addr()); }
};
+#pragma GCC diagnostic pop
#endif
} // namespace