refactor: Use [[maybe_unused]] attribute #24772

pull hebasto wants to merge 2 commits into bitcoin:master from hebasto:220405-void changing 1 files +4 −12
  1. hebasto commented at 11:57 am on April 5, 2022: member

    This change is required for bitcoin/bitcoin#24773 as it prevents MSVC yelling about “warning C4551: function call missing argument list”.

    But it is useful by itself as it makes code more concise and readable.

  2. refactor: Drop unneeded workarounds aimed to silence unused warning
    All of the touched symbols are indeed used regardless of any macros.
    55e0fc8df9
  3. refactor: Use [[maybe_unused]] attribute 07ddecb84e
  4. fanquake added the label Refactoring on Apr 5, 2022
  5. vincenzopalazzo approved
  6. Empact commented at 3:25 pm on April 6, 2022: member
    Code review ACK 07ddecb84e6097684fa56cfc79c8c2aad76f6604
  7. w0xlt approved
  8. w0xlt commented at 3:32 pm on April 6, 2022: contributor
    ACK 07ddecb
  9. laanwj commented at 1:58 pm on April 19, 2022: member
    Code review ACK 07ddecb84e6097684fa56cfc79c8c2aad76f6604
  10. laanwj merged this on Apr 19, 2022
  11. laanwj closed this on Apr 19, 2022

  12. hebasto deleted the branch on Apr 19, 2022
  13. sidhujag referenced this in commit f308cdc773 on Apr 19, 2022
  14. DrahtBot locked this on Apr 19, 2023

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: 2024-07-03 13:13 UTC

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