Repository navigation
util: add missing include and fix function signature - #27192
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
sedited
left a comment
There was a problem hiding this comment.
ACK 101601a1ff7ff8a0eb58171df1227dc7b006cbb9
There was a problem hiding this comment.
nit: Including the own module goes on the first line/section, usually, to catch missing includes in the header file.
Also, could add it to iwyu in ci/test/06_...sh, so that reviewers can look at the ci output if they want?
There was a problem hiding this comment.
Reordered. I think this change is simple enough for manual review :)
There was a problem hiding this comment.
Yeah, I was mostly thinking that it would be good to check for other missing includes while touching the file, so that it doesn't have to be touched again later if there is a missing stdlib include or so.
101601a to
8847ce4
Compare
|
Post-merge ACK. |
ping hebasto
Discovered while testing pre-compiled header support with CMake: https://github.com/theuni/bitcoin/commits/cmake-pch-poc. Compilation of that branch fails without this fix and succeeds with it.
Similar to the fix in #27144.
The problem of having a default argument in the definition was masked by the missing include. Using PCH forces that include, so we end up with the compiler error we should've been getting all along.