aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-12-02 16:14:01 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-12-02 16:16:38 +0000
commit27e5d860879c8f6075231e2a547fe8ead5f382e4 (patch)
tree27f5b6ba4f5ecb406aee3c1141171a3cfeb5609e
parent73e7f63ffaacf018b1fad331d2369bf891620e97 (diff)
downloadgcc-27e5d860879c8f6075231e2a547fe8ead5f382e4.zip
gcc-27e5d860879c8f6075231e2a547fe8ead5f382e4.tar.gz
gcc-27e5d860879c8f6075231e2a547fe8ead5f382e4.tar.bz2
libstdc++: Disable deprecated warnings for std::rel_ops in std.cc
This avoids some warnings when building the std module. libstdc++-v3/ChangeLog: * src/c++23/std.cc.in: Disable deprecated warnings when exporting std::rel_ops members.
-rw-r--r--libstdc++-v3/src/c++23/std.cc.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/src/c++23/std.cc.in b/libstdc++-v3/src/c++23/std.cc.in
index 16e66c3..7a0ff8e 100644
--- a/libstdc++-v3/src/c++23/std.cc.in
+++ b/libstdc++-v3/src/c++23/std.cc.in
@@ -3151,6 +3151,8 @@ export namespace std
using std::piecewise_construct_t;
using std::tuple_element;
using std::tuple_size;
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
namespace rel_ops
{
using std::rel_ops::operator!=;
@@ -3158,6 +3160,7 @@ export namespace std
using std::rel_ops::operator<=;
using std::rel_ops::operator>=;
}
+#pragma GCC diagnostic pop
#if __cpp_lib_unreachable
using std::unreachable;
#endif