Add explicit cast to base58 and bech32 string constants in order to silence GCC warning #14486

pull DesWurstes wants to merge 1 commits into bitcoin:master from DesWurstes:patch-4 changing 2 files +2 −2
  1. DesWurstes commented at 1:48 PM on October 15, 2018: contributor

    May I also constexprize them in this Pull Request?

  2. Add explicit cast to base58 and bech32 string constants fffffffd7f
  3. fanquake added the label Refactoring on Oct 15, 2018
  4. ken2812221 commented at 4:45 AM on October 16, 2018: contributor

    Could you elaborate more details? I don't understand what your purpose is.

  5. DesWurstes commented at 1:37 PM on October 16, 2018: contributor

    In standard C++, const char*a="abc"; is illegal. (const char *) is required, and const_cast<char*> is the C++ way to do that.

  6. practicalswift commented at 2:34 PM on October 16, 2018: contributor

    @DesWurstes I'm not sure I follow. Can you post the GCC warning you're trying to get rid of?

  7. sipa commented at 2:50 PM on October 16, 2018: member

    Why is that illegal?

  8. DesWurstes commented at 3:14 PM on October 16, 2018: contributor

    Erroneous observation due to blind constexpr replacements. It was char * k="d"; that was illegal.<sub><sub><sup><sup>forgive me.</sup></sup></sub></sub>

  9. DesWurstes closed this on Oct 16, 2018

  10. DrahtBot locked this on Sep 8, 2021

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-21 21:15 UTC

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