Repository navigation
util: remove unused exception parameter in Popen::execute_process - #36383
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36383. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Upstreamed in arun11299/cpp-subprocess#133. |
f3d730f to
cde2f2e
Compare
musaHaruna
left a comment
There was a problem hiding this comment.
ACK cde2f2e
Checked that removing exp leaves the catch type, cleanup call, and throw; unchanged.
Built on macOS arm64 with Apple Clang 17, with -Wunused-exception-parameter and -Werror enabled. Confirmed the original header triggers the warning and the updated header compiles successfully.
Unrelated, but I see you are compiling with Apple Clang 17. I wonder which exact version, because in #36287 I bump to the latest Apple Clang 17 version. So I wonder if this works for you, or if you'd have to upgrade your macOS and/or XCode. |
|
lgtm ACK cde2f2e Seems fine to enforce this as a small, mostly-style preference. |
I’m using Apple Clang 17.0.0 (clang-1700.6.3.2) from Command Line Tools 26.2, on macOS 26.0 (arm64). I haven't looked at #36287 yet, but I will take a look. |
…in `Popen::execute_process`
cde2f2ec641acfb7ab11e5d37182b5fcafb65a94 build: enable -Wunused-exception-parameter (fanquake)
1b00dff743da029a25b13e31e79552befc4c3f30 util: remove unused exception parameter in Popen::execute_process (fanquake)
Pull request description:
```bash
[451/1129] Building CXX object src/CMakeFiles/bitcoin_common.dir/common/run_command.cpp.o
In file included from ../src/common/run_command.cpp:10:
../src/util/subprocess.h:1219:30: warning: unused exception parameter 'exp' [-Wunused-exception-parameter]
1219 | } catch (std::exception& exp) {
| ^~~
1 warning generated.
```
Related to #36167.
ACKs for top commit:
maflcko:
lgtm ACK cde2f2ec641acfb7ab11e5d37182b5fcafb65a94
musaHaruna:
ACK [cde2f2e](github.com/bitcoin/bitcoin/pull/36383/changes/cde2f2ec641acfb7ab11e5d37182b5fcafb65a94)
willcl-ark:
ACK cde2f2ec641acfb7ab11e5d37182b5fcafb65a94
hebasto:
ACK cde2f2ec641acfb7ab11e5d37182b5fcafb65a94.
Tree-SHA512: 85bd84770bf7c8da1837f1940971e6572d80856ec31d0459e3032c0eb94e0c0d7ee1aaea8c51028652577b3f90ba20ffbf9ada7e92eb2f8173b8df74a14c82db
Related to #36167.