Warnings and errors building with -std=c++11 #6957

issue 6coind opened this issue on November 6, 2015
  1. 6coind commented at 5:57 AM on November 6, 2015: none

    Is there a reason we still use auto_ptr in CreateNewBlock function ? Also there is a warning while building levelDB

    util/bloom.cc:50:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t i = 0; i < n; i++) { ^

    and

    util/logging.cc:58:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare](v == kMaxUint64/10 && delta > kMaxUint64%10)) {

    Is it meant to remain this way for any reason?

  2. laanwj commented at 10:39 AM on November 6, 2015: member

    What error do you get?

    Using an alternative to std:auto_ptr is OK with me, although it should be backward compatible with non-C++11 for now.

    Warnings may indicate a problem or may be (usually) harmless, should be checked on a per-case basis.

  3. laanwj added the label Upstream on Nov 24, 2015
  4. laanwj commented at 8:19 AM on November 24, 2015: member

    Closing this. LevelDB warnings should be solved upstream. They are not concerning enough to keep this open.

  5. laanwj closed this on Nov 24, 2015

  6. 6coind commented at 12:57 PM on November 24, 2015: none

    yeah, i eventually resolved thanks. On careful consideration perhaps it may be best left with full backwards compatibility.

  7. MarcoFalke locked this on Sep 8, 2021
Contributors
Labels

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

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