Wallet: Remove "-Wunused-variable" warning while build with "--disable-wallet" option #15217

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:20190120-unused-variable-warning changing 1 files +1 −4
  1. hebasto commented at 6:53 PM on January 20, 2019: member

    Currently in master:

    $ make distclean
    $ ./configure --disable-wallet
    $ make >> /dev/null
    ...
    qt/rpcconsole.cpp: In member function ‘void RPCConsole::on_lineEdit_returnPressed()’:
    qt/rpcconsole.cpp:907:22: warning: unused variable ‘wallet_model’ [-Wunused-variable]
             WalletModel* wallet_model{nullptr};
                          ^~~~~~~~~~~~
    

    This refactoring PR does not change the behavior of code.

    cc @promag

  2. Remove -Wunused-variable while --disable-wallet dda7cb7163
  3. promag commented at 7:07 PM on January 20, 2019: member

    There is already a fix in #15150 b669ba6bd86a7808e4692bb0cf692b1c95d8d32d.

  4. hebasto commented at 7:12 PM on January 20, 2019: member

    @promag you are right.

  5. hebasto closed this on Jan 20, 2019

  6. Sjors commented at 1:26 PM on January 16, 2020: member

    Unfortunately that never got merged.

  7. hebasto deleted the branch on Jan 18, 2020
  8. DrahtBot locked this on Feb 15, 2022
Contributors

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

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