-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missed config/bitcoin-config.h
header
#29333
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process. |
The `config/bitcoin-config.h` header is required to provide definitions for the `USE_BDB` and `USE_SQLITE` macros.
6a8a276
to
35ccd50
Compare
#if defined(HAVE_CONFIG_H) | ||
#include <config/bitcoin-config.h> | ||
#endif | ||
|
||
#include <common/system.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't bitcoin-config.h
indirectly included by this system.h
include? (which btw, doesn't seems to be needed).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't
bitcoin-config.h
indirectly included by thissystem.h
include?
It is.
While this header might be included indirectly elsewhere, including it explicitly makes the build process more robust.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
It was spotted during debugging another issue. Agree that it looks like a random diff. |
The
config/bitcoin-config.h
header is required to provide definitions for theUSE_BDB
andUSE_SQLITE
macros.While this header might be included indirectly elsewhere, including it explicitly makes the build process more robust.