From 32921f8ff5dc2092f2e2ae184c9c6424f258d151 Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Thu, 8 May 2025 13:08:52 +0300 Subject: [PATCH] Fix -Wunused-parameter --- include/boost/process/v1/pipe.hpp | 6 +++--- include/boost/process/v2/detail/process_handle_signal.hpp | 2 +- include/boost/process/v2/stdio.hpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/process/v1/pipe.hpp b/include/boost/process/v1/pipe.hpp index a852b8117..694327356 100644 --- a/include/boost/process/v1/pipe.hpp +++ b/include/boost/process/v1/pipe.hpp @@ -396,7 +396,7 @@ class basic_ipstream : public std::basic_istream } ///Open a new named pipe - void open(const std::string & name) + void open(const std::string &) { if (_buf.open() == nullptr) this->setstate(std::ios_base::failbit); @@ -504,7 +504,7 @@ class basic_opstream : public std::basic_ostream } ///Open a new named pipe - void open(const std::string & name) + void open(const std::string &) { if (_buf.open() == nullptr) this->setstate(std::ios_base::failbit); @@ -612,7 +612,7 @@ class basic_pstream : public std::basic_iostream } ///Open a new named pipe - void open(const std::string & name) + void open(const std::string &) { if (_buf.open() == nullptr) this->setstate(std::ios_base::failbit); diff --git a/include/boost/process/v2/detail/process_handle_signal.hpp b/include/boost/process/v2/detail/process_handle_signal.hpp index 5272a8479..4ccf774ed 100644 --- a/include/boost/process/v2/detail/process_handle_signal.hpp +++ b/include/boost/process/v2/detail/process_handle_signal.hpp @@ -319,7 +319,7 @@ struct basic_process_handle_signal } template - void operator()(Self &&self, error_code ec, int sig) + void operator()(Self &&self, error_code ec, int /* sig */) { if (ec == net::error::operation_aborted && self.get_cancellation_state().cancelled() diff --git a/include/boost/process/v2/stdio.hpp b/include/boost/process/v2/stdio.hpp index db88cedc3..54d3289f9 100644 --- a/include/boost/process/v2/stdio.hpp +++ b/include/boost/process/v2/stdio.hpp @@ -267,7 +267,7 @@ struct process_io_binding return ec; } - error_code on_exec_setup(posix::default_launcher & launcher, + error_code on_exec_setup(posix::default_launcher & /* launcher */, const filesystem::path &, const char * const *) { if (::dup2(fd, target) == -1) @@ -364,4 +364,4 @@ struct process_stdio BOOST_PROCESS_V2_END_NAMESPACE -#endif // BOOST_PROCESS_V2_STDIO_HPP \ No newline at end of file +#endif // BOOST_PROCESS_V2_STDIO_HPP