diff mbox series

[committed] libstdc++: Fix -Wunused-parameter warnings in Networking TS headers

Message ID 20240828204303.1862183-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Fix -Wunused-parameter warnings in Networking TS headers | expand

Commit Message

Jonathan Wakely Aug. 28, 2024, 8:42 p.m. UTC
Tested x86_64-linux. Pushed to trunk.

-- >8 --

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 | 2 +-
 libstdc++-v3/include/experimental/socket     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/include/experimental/io_context b/libstdc++-v3/include/experimental/io_context
index 4db3782e2bb..8b0dba7d5fa 100644
--- a/libstdc++-v3/include/experimental/io_context
+++ b/libstdc++-v3/include/experimental/io_context
@@ -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;
diff --git a/libstdc++-v3/include/experimental/socket b/libstdc++-v3/include/experimental/socket
index 3fe83a001e6..62beb43d269 100644
--- a/libstdc++-v3/include/experimental/socket
+++ b/libstdc++-v3/include/experimental/socket
@@ -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);