Avoid -Wreturn-type warnings.
Closes #21355.
Avoid -Wreturn-type warnings.
Closes #21355.
9 | @@ -10,6 +10,7 @@ 10 | #include <attributes.h> 11 | #include <chainparamsbase.h> 12 | #include <coins.h> 13 | +#include <compat.h>
nit: I am not really a fan of turning this into a "include all headers that exist" file. This could be a separate module, but as a start, what about moving the implementation details to the cpp file at least?
I agree, but note that compat.h was already transitively included via at least four other already included files (net.h, netaddress.h, netbase.h and util/time.h).
Thus the explicit inclusion doesn't change anything in practice from a technical perspective: it only makes it clear that we depend on compat.h :)
Explicit is better than implicit as we all know by now :)
cr ACK 3f3646855c4005670909c8e76de91ad07c559c66
seems fine to do to, if this fixes a warning
ACK 3f3646855c4005670909c8e76de91ad07c559c66 - thanks for cleaning this up.