]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix -Wunused-parameter warnings in Networking TS headers
authorJonathan Wakely <jwakely@redhat.com>
Wed, 28 Aug 2024 11:21:56 +0000 (12:21 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 28 Aug 2024 20:34:22 +0000 (21:34 +0100)
libstdc++-v3/ChangeLog:

* include/experimental/io_context: Remove name of unused
parameter.
* include/experimental/socket: Add [[maybe_unused]] attribute.

libstdc++-v3/include/experimental/io_context
libstdc++-v3/include/experimental/socket

index 4db3782e2bb6e59ee8d4d3d7eb7d2155ad95e194..8b0dba7d5fa601170e0d775e2a59077b3d2e3785 100644 (file)
@@ -148,7 +148,7 @@ inline namespace v1
     io_context() : _M_work_count(0) { }
 
     explicit
-    io_context(int __concurrency_hint) : _M_work_count(0) { }
+    io_context(int /* __concurrency_hint */) : _M_work_count(0) { }
 
     io_context(const io_context&) = delete;
     io_context& operator=(const io_context&) = delete;
index 3fe83a001e61fcef6460d26a990e0c5875ae6181..62beb43d269c9e28de35af845a859c963f1474b8 100644 (file)
@@ -493,7 +493,7 @@ inline namespace v1
     bool non_blocking() const { return _M_bits.non_blocking; }
 
     void
-    native_non_blocking(bool __mode, error_code& __ec)
+    native_non_blocking([[maybe_unused]] bool __mode, error_code& __ec)
     {
 #if defined _GLIBCXX_HAVE_FCNTL_H && defined _GLIBCXX_HAVE_DECL_O_NONBLOCK
       int __flags = ::fcntl(_M_sockfd, F_GETFL, 0);