Review report

bitcoin/bitcoin: PR #36167

1 minor finding

Earlier concerns neither republished nor resolved: 4 suggestions. See the Run archive for their assessments.

Findings

Link

[minor] · The redundant -Wunused flag leaves parameter cleanup unenforced

On GCC and Clang, -Wall already enables -Wunused, while the retained parameter suppression prevents CI from enforcing the parameter cleanup.

Location: CMakeLists.txt:491 (head).

Details and suggested fix

warn_interface already enables -Wall and -Wextra, with clang-cl receiving -Wall through /W3. GCC and Clang include the -Wunused group in -Wall, so the added line does not enable additional diagnostics. Meanwhile, the later -Wunused-parameter probe installs -Wno-unused-parameter: TryAppendCXXFlags.cmake appends the IF_CHECK_PASSED replacement, not the probed option. A newly added unused parameter therefore remains undiagnosed despite CI treating warnings as errors. This suppression predates the PR, but leaving it in place means the parameter-only edits, such as unnaming the AppInitBasicSetup parameters, gain no enforcement. To enforce that cleanup, remove the suppression and drop the redundant -Wunused line, retaining the separately enabled warning categories.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.