diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-08-28 12:21:56 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-08-28 21:34:22 +0100 |
commit | 51b0fef4e6ee01ed2509bd54a448d2564a89c518 (patch) | |
tree | 365e8ea9ca3c76c64fab99d3137cdeb7c551b769 | |
parent | 0e2b3dba5179c9becbff0730febbdce3a088bae3 (diff) | |
download | gcc-51b0fef4e6ee01ed2509bd54a448d2564a89c518.zip gcc-51b0fef4e6ee01ed2509bd54a448d2564a89c518.tar.gz gcc-51b0fef4e6ee01ed2509bd54a448d2564a89c518.tar.bz2 |
libstdc++: Fix -Wunused-parameter warnings in Networking TS headers
libstdc++-v3/ChangeLog:
* include/experimental/io_context: Remove name of unused
parameter.
* include/experimental/socket: Add [[maybe_unused]] attribute.
-rw-r--r-- | libstdc++-v3/include/experimental/io_context | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/socket | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/experimental/io_context b/libstdc++-v3/include/experimental/io_context index 4db3782..8b0dba7 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 3fe83a0..62beb43 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); |