WIP: [RFC] build: build with -Wmissing-declarations/prototypes

bitcoin/bitcoin: PR #36743

The review is inconclusive; no findings were published.

Coverage details