Is your feature request related to a problem? Please describe.
Warning on building using g++ 8.3.
0 1 In file included from ./txdb.h:11,
1 2 from ./validation.h:26,
2 3 from ./test/util/chainstate.h:13,
3 4 from test/validation_chainstate_tests.cpp:11:
4 5 ./chain.h: In member function ‘void validation_chainstate_tests::chainstate_update_tip::test_method()’:
5 6 ./chain.h:422:27: warning: ‘background_cs’ may be used uninitialized in this function [-Wmaybe-uninitialized]
6 7 return vChain.size() > 0 ? vChain[vChain.size() - 1] : nullptr;
7 8 ~~~~~~~~~~~^~
8 9 test/validation_chainstate_tests.cpp:109:18: note: ‘background_cs’ was declared here
910 CChainState* background_cs;
1011 ^~~~~~~~~~~~~
1112
Describe the solution you’d like
Able to build without warnings.
Describe alternatives you’ve considered
N/A.
Additional context
cd src/ && make test/test_bitcoin-validation_chainstate_tests.o
Bisecting this warning, I ended up in revision 673a5bd3377929a0 by @jamesob.
Thank you very much and please excuse the noise.