This spews a bunch of redundant-decls
warnings when compiling for me. I tried dropping it, but that doesn’t work.
0In file included from ./validation.h:28,
1 from ./rpc/blockchain.h:13,
2 from rest.cpp:19:
3./txmempool.h:358:19: warning: redundant redeclaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’ in same scope [-Wredundant-decls]
4 358 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
5 | ^~~~~~~~~~~~~~~~~~~~~
6In file included from ./index/base.h:11,
7 from ./index/blockfilterindex.h:12,
8 from rest.cpp:13:
9./validationinterface.h:23:19: note: previous declaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’
10 23 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
11 | ^~~~~~~~~~~~~~~~~~~~~
12 CXX rpc/libbitcoin_node_a-net.o
13In file included from ./index/base.h:11,
14 from ./index/blockfilterindex.h:12,
15 from rpc/blockchain.cpp:20:
16./validationinterface.h:23:19: warning: redundant redeclaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’ in same scope [-Wredundant-decls]
17 23 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
18 | ^~~~~~~~~~~~~~~~~~~~~
19In file included from ./validation.h:28,
20 from ./rpc/blockchain.h:13,
21 from rpc/blockchain.cpp:6:
22./txmempool.h:358:19: note: previous declaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’
23 358 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
24 | ^~~~~~~~~~~~~~~~~~~~~
25 CXX rpc/libbitcoin_node_a-node.o
26In file included from rpc/mining.cpp:38:
27./validationinterface.h:23:19: warning: redundant redeclaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’ in same scope [-Wredundant-decls]
28 23 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
29 | ^~~~~~~~~~~~~~~~~~~~~
30In file included from ./node/miner.h:10,
31 from rpc/mining.cpp:19:
32./txmempool.h:358:19: note: previous declaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’
33 358 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
34 | ^~~~~~~~~~~~~~~~~~~~~
35 CXX rpc/libbitcoin_node_a-output_script.o
36In file included from ./validation.h:28,
37 from ./rpc/blockchain.h:13,
38 from rpc/net.cpp:18:
39./txmempool.h:358:19: warning: redundant redeclaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’ in same scope [-Wredundant-decls]
40 358 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
41 | ^~~~~~~~~~~~~~~~~~~~~
42In file included from ./net_processing.h:10,
43 from rpc/net.cpp:13:
44./validationinterface.h:23:19: note: previous declaration of ‘const string RemovalReasonToString(const MemPoolRemovalReason&)’
45 23 | const std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept;
46 | ^~~~~~~~~~~~~~~~~~~~~
47 CXX rpc/libbitcoin_node_a-rawtransaction.o
48 CXX rpc/libbitcoin_node_a-server.o
49...