Initialize variable to prevent compiler warning #9121

pull paveljanik wants to merge 1 commits into bitcoin:master from paveljanik:20161110_rpcdump_uninitialized changing 1 files +1 −1
  1. paveljanik commented at 7:14 am on November 10, 2016: contributor

    Compiling current master with the ultimate gcc 6 (6.2.1 in my case) brings this warning. While technically useless it can hide important stuff.

    0  CXX      wallet/libbitcoin_wallet_a-rpcdump.o
    1wallet/rpcdump.cpp: In function 'UniValue importmulti(const JSONRPCRequest&)':
    2wallet/rpcdump.cpp:1020:13: warning: 'nLowestTimestamp' may be used uninitialized in this function [-Wmaybe-uninitialized]
    3     int64_t nLowestTimestamp;
    4             ^~~~~~~~~~~~~~~~
    
  2. Initialize variable to prevent compiler warning bdcba6d933
  3. dcousens approved
  4. sipa commented at 7:22 am on November 10, 2016: member
    utACK bdcba6d93308551788a23f75bec194433c30ebfe
  5. jonasschnelli commented at 7:28 am on November 10, 2016: contributor
    utACK bdcba6d93308551788a23f75bec194433c30ebfe
  6. fanquake commented at 8:39 am on November 10, 2016: member
    utACK bdcba6d
  7. laanwj merged this on Nov 10, 2016
  8. laanwj closed this on Nov 10, 2016

  9. laanwj referenced this in commit aab102cbae on Nov 10, 2016
  10. codablock referenced this in commit 5f6908619e on Jan 15, 2018
  11. andvgal referenced this in commit a4d43f1814 on Jan 6, 2019
  12. CryptoCentric referenced this in commit 89c652cb06 on Feb 24, 2019
  13. 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: 2025-01-22 03:12 UTC

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