Review report

bitcoin/bitcoin: PR #36167

1 minor finding

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

Findings

Link

[minor] · -Wunused adds no diagnostics and leaves parameter warnings suppressed

On GCC and Clang, the existing -Wall already enables -Wunused, while the retained -Wno-unused-parameter leaves this PR's parameter cleanup without compiler enforcement.

Location: CMakeLists.txt:491 (head).

Details and suggested fix

The warning interface already enables -Wall and -Wextra, so adding -Wunused does not enable additional diagnostics on GCC or Clang. The later try_append_cxx_flags("-Wunused-parameter", ...) call only probes support: its IF_CHECK_PASSED argument makes the helper install -Wno-unused-parameter instead. That specific suppression remains effective, allowing new unused parameters without a diagnostic despite the cleanup here. The suppression predates this PR, so this is missing enforcement rather than a regression. Drop the redundant -Wunused addition and remove the unused-parameter suppression from warn_interface if the goal is to enforce the cleanup.


Coverage details

Earlier concerns

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