]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Disable deprecated warnings for std::rel_ops in std.cc
authorJonathan Wakely <jwakely@redhat.com>
Mon, 2 Dec 2024 16:14:01 +0000 (16:14 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 2 Dec 2024 16:16:38 +0000 (16:16 +0000)
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.

libstdc++-v3/src/c++23/std.cc.in

index 16e66c3d9210c632e9afa79343f95491175dda00..7a0ff8edad6e7727faf0e9e34295873ea1011c8f 100644 (file)
@@ -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