Continues #8105.
There is (one) global RPC table - tableRPC
. Various registration functions use the same-named argument and thus -Wshadow
reports them as shadowing the global one:
E.g.:
0./rpc/register.h:23:58: warning: declaration shadows a variable in the global namespace [-Wshadow]
1static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
2 ^
3./rpc/server.h:163:18: note: previous declaration is here
4extern CRPCTable tableRPC;
5 ^
As discussed on IRC, I have chosen to rename the arguments only and do no more changes.
Review of this should be pretty straight forward. Just compare binaries. View the diff in visual diff or so.
To provide tested ACK, cherrypick https://github.com/paveljanik/bitcoin/commit/5d2f98e8d1b3772f50c755e6957cb97e0dfe1e9e and compare master build log and this PR build log.