fuzz: Avoid -Wreturn-type warnings #21364

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:–Wreturn-type changing 1 files +3 −0
  1. practicalswift commented at 8:36 PM on March 4, 2021: contributor

    Avoid -Wreturn-type warnings.

    Closes #21355.

  2. fuzz: Avoid -Wreturn-type warnings 3f3646855c
  3. in src/test/fuzz/util.h:13 in 3f3646855c
       9 | @@ -10,6 +10,7 @@
      10 |  #include <attributes.h>
      11 |  #include <chainparamsbase.h>
      12 |  #include <coins.h>
      13 | +#include <compat.h>
    


    MarcoFalke commented at 8:52 PM on March 4, 2021:

    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?


    practicalswift commented at 7:32 AM on March 6, 2021:

    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 :)

  4. MarcoFalke approved
  5. MarcoFalke commented at 8:53 PM on March 4, 2021: member

    cr ACK 3f3646855c4005670909c8e76de91ad07c559c66

    seems fine to do to, if this fixes a warning

  6. DrahtBot added the label Tests on Mar 4, 2021
  7. fanquake approved
  8. fanquake commented at 2:41 AM on March 5, 2021: member

    ACK 3f3646855c4005670909c8e76de91ad07c559c66 - thanks for cleaning this up.

  9. fanquake merged this on Mar 5, 2021
  10. fanquake closed this on Mar 5, 2021

  11. sidhujag referenced this in commit 7106a1131e on Mar 5, 2021
  12. practicalswift deleted the branch on Apr 10, 2021
  13. DrahtBot locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 00:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me