1 minor finding · 2 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · -Wunused leaves unused-parameter warnings disabled
The existing -Wno-unused-parameter suppression remains effective, so normal CI will still accept new unused named parameters despite this PR's parameter cleanup.
Location: CMakeLists.txt:504 (head).
Details and suggested fix
CMakeLists.txt still probes -Wunused-parameter with IF_CHECK_PASSED "-Wno-unused-parameter". On success, try_append_cxx_flags adds the negative form to warn_interface, not the flag being probed. Adding -Wunused does not override that explicit suppression on GCC or Clang; -Wall already enables -Wunused on both compilers. Replace the suppression block with an explicit -Wunused-parameter so the cleanup is enforced. Moving -Wunused later is insufficient for GCC. If parameter warnings are intentionally out of scope, omit the parameter cleanup instead.
Optional improvements
[suggestion] · Non-interface cleanup is buried in mechanical parameter unnamings
If the parameter cleanup is retained, separating non-interface functions from fixed-signature callbacks would make redundant or accidentally ignored inputs easier to assess; these edits do not themselves change behavior.
Location: src/test/util/setup_common.cpp:429 at 73d2c33b440d (commit) (commit).
Details and suggested fix
73d2c33b440d7db0f2234d7b88bafb68719baddd combines mechanical callback unnamings with three different cleanup questions: TestChain100Setup ignores chain_type in its documented REGTEST-only fixture, AppInitBasicSetup uses neither argument although both callers supply them, and couldSignInputs ignores its PSBT argument in favor of *m_transaction_data. The current PSBT caller supplies that same member, and no caller requiring another chain was established, so these are not demonstrated functional bugs.
Split the non-interface changes into a separate commit that removes redundant parameters and updates callers, or explains why they remain. Keep both cleanup commits before 8074b363d7c5a7fb23bd6d14456955bed6ff5402, the build-flag commit, so any corrected parameter-warning enablement follows its prerequisites. This makes the substantive API decisions reviewable separately from fixed-signature warning cleanup.
[suggestion] · Notification hooks lose their parameter documentation
The in-tree KernelNotifications and kernel::Notifications base declarations no longer identify height, timestamp, progress, or flag meanings, requiring contributors to consult implementations when defining callbacks.
Location: src/kernel/bitcoinkernel_wrapper.h:1127 (head).
Details and suggested fix
HeaderTipHandler(SynchronizationState, int64_t, int64_t, bool) no longer distinguishes height from timestamp or identifies presync; the corresponding headerTip declaration loses the same information. The progress hooks likewise lose progress_percent and resume_possible. Retain these names as comments, such as int64_t /*height*/ and bool /*presync*/, rather than removing them entirely. This preserves the callback contract at the declaration and remains warning-free if -Wunused-parameter is enabled. The PR already uses this approach in TestKernelNotifications.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Retain the direct
<iterator>include