Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

warning: unused parameter or name

Open
#438 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp

Research direction

Start with libs/process/include/boost/process/v1/pipe.hpp at the open overloads around lines 399, 507, and 615, then inspect libs/process/include/boost/process/v1/detail/windows/handles.hpp around lines 141, 157, and 164. Build the Windows Process code with unused-parameter warnings enabled and confirm that these warnings are resolved without introducing new diagnostics.

Written by the indexing model from the issue text.

Description

would be nice to fix this warn

In file included from D:\git\boost_\libs\process\include\boost/process/v1/io.hpp:14:
D:\git\boost_\libs\process\include\boost/process/v1/pipe.hpp(399,35): warning: unused parameter 'name' [-Wunused-parameter]
  399 |     void open(const std::string & name)
      |                                   ^
D:\git\boost_\libs\process\include\boost/process/v1/pipe.hpp(507,35): warning: unused parameter 'name' [-Wunused-parameter]
  507 |     void open(const std::string & name)
      |                                   ^
D:\git\boost_\libs\process\include\boost/process/v1/pipe.hpp(615,35): warning: unused parameter 'name' [-Wunused-parameter]
  615 |     void open(const std::string & name)
      |                                   ^
D:\git\boost_\libs\process\include\boost/process/v1/detail/windows/handles.hpp(141,45): warning: unused variable 'flags' [-Wunused-variable]
  141 |                     ::boost::winapi::DWORD_ flags = 0u;
      |                                             ^~~~~
D:\git\boost_\libs\process\include\boost/process/v1/detail/windows/handles.hpp(157,30): warning: unused parameter 'exec' [-Wunused-parameter]
  157 |     void on_error(Executor & exec, const std::error_code & ec) const
      |                              ^
D:\git\boost_\libs\process\include\boost/process/v1/detail/windows/handles.hpp(157,60): warning: unused parameter 'ec' [-Wunused-parameter]
  157 |     void on_error(Executor & exec, const std::error_code & ec) const
      |                                                            ^
D:\git\boost_\libs\process\include\boost/process/v1/detail/windows/handles.hpp(164,32): warning: unused parameter 'exec' [-Wunused-parameter]
  164 |     void on_success(Executor & exec) const
      |                                ^

Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/process

All issues in boostorg/process

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.