The config/bitcoin-config.h header is required to provide definitions for the USE_BDB and USE_SQLITE macros.
While this header might be included indirectly elsewhere, including it explicitly makes the build process more robust.
The config/bitcoin-config.h header is required to provide definitions for the USE_BDB and USE_SQLITE macros.
While this header might be included indirectly elsewhere, including it explicitly makes the build process more robust.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For detailed information about the code coverage, see the test coverage report.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process. A summary of reviews will appear here.
The `config/bitcoin-config.h` header is required to provide definitions
for the `USE_BDB` and `USE_SQLITE` macros.
4 | @@ -5,6 +5,10 @@ 5 | 6 | #include <wallet/walletdb.h> 7 | 8 | +#if defined(HAVE_CONFIG_H) 9 | +#include <config/bitcoin-config.h> 10 | +#endif 11 | + 12 | #include <common/system.h>
Isn't bitcoin-config.h indirectly included by this system.h include? (which btw, doesn't seems to be needed).
Isn't
bitcoin-config.hindirectly included by thissystem.hinclude?
It is.
While this header might be included indirectly elsewhere, including it explicitly makes the build process more robust.
then it would be good to remove the unused include within this change. walletdb.cpp does not call to any system.h` function.
What motivates changing only this single file and not the various other modules that iwyu reports to have unused or missing bitcoin-config.h includes?
What motivates changing only this single file and not the various other modules that iwyu reports to have unused or missing
bitcoin-config.hincludes?
It was spotted during debugging another issue. Agree that it looks like a random diff.