Draft for now, as it requires upstream changes, and some codebase/style decisions. Some of the fixes will be split off in advance.
Based on:
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline and AI policy for information on the review process. A summary of reviews will appear here.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
src/test/fuzz and treat them as errors by hebasto)-Wunused by fanquake)[[noreturn]] by fanquake)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.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
These functions are only used within the file that defines them, and
have no declaration elsewhere, so -Wmissing-prototypes (clang) and
-Wmissing-declarations (GCC) warn about them. Give them internal
linkage.
fail_test_if_executed() is [[maybe_unused]], because TRACEPOINT discards
its arguments when tracing is disabled.
LLVMFuzzerTestOneInput and LLVMFuzzerInitialize are called by libFuzzer,
so they can't be static. Declare them first, to avoid
-Wmissing-prototypes / -Wmissing-declarations warnings.
It was declared locally in guiutil.cpp, so the definition was never
checked against the declaration.
These functions are declared in a header, but only used in the file that
defines them. Remove the declarations and give them internal linkage.
These overloads (and the walletdb Load* helpers) are declared in a header,
but only used in the file that defines them. Remove the declarations and
give them internal linkage.
Also drop the forward declarations, reordering definitions where needed.
This is GCC's equivalent of clang's -Wmissing-prototypes for C++.
<!--cf906140f33d8803c4a75a2196329ecb-->
🐙 This pull request conflicts with the target branch and needs rebase.