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.
This commit is contained in:
Jonathan Wakely 2024-08-28 12:21:56 +01:00 committed by Jonathan Wakely
parent 0e2b3dba51
commit 51b0fef4e6
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View 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;

View 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);