gui: Remove warning "unused variable 'wallet_model'" #17939

pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2020/01/disable-wallet-unused-variable changing 1 files +1 −5
  1. Sjors commented at 1:29 PM on January 16, 2020: member

    This was part of the abandoned #15150.

  2. gui: Remove warning "unused variable 'wallet_model'" c279a81e9c
  3. Sjors requested review from promag on Jan 16, 2020
  4. fanquake added the label Refactoring on Jan 16, 2020
  5. theStack approved
  6. theStack commented at 6:20 PM on January 16, 2020: member

    utACK https://github.com/bitcoin/bitcoin/pull/17939/commits/c279a81e9c7dc3386e929ff8b635e7a0de9c20c5 Changes LGTM -- the variable wallet_model is not needed if ENABLE_WALLET is not set and accessing the current element of a combox-box using QComboBox::currentData() instead of using the index is possible since Qt 5.2 (https://doc.qt.io/qt-5/qcombobox.html#currentData-prop).

  7. promag commented at 6:22 PM on January 16, 2020: member

    Thanks @Sjors for picking this, ACK.

  8. promag approved
  9. fanquake approved
  10. fanquake commented at 8:00 AM on January 17, 2020: member

    ACK c279a81e9c7dc3386e929ff8b635e7a0de9c20c5 - tested wallet loading/unloading in the qt rpc console.

    This warning is fixed when compiling with --disable-wallet:

    qt/rpcconsole.cpp:908:22: warning: unused variable 'wallet_model' [-Wunused-variable]
            WalletModel* wallet_model{nullptr};
                         ^
    1 warning generated.
    
  11. fanquake referenced this in commit c20fbb7be8 on Jan 17, 2020
  12. fanquake merged this on Jan 17, 2020
  13. fanquake closed this on Jan 17, 2020

  14. Sjors deleted the branch on Jan 17, 2020
  15. MarkLTZ referenced this in commit 7fdadc73fc on Apr 6, 2020
  16. MarkLTZ referenced this in commit 8436547baa on Apr 6, 2020
  17. Fabcien referenced this in commit 8d55767e3c on Dec 7, 2020
  18. PastaPastaPasta referenced this in commit 81f118f3d3 on Sep 17, 2021
  19. thelazier referenced this in commit 092bb8a134 on Sep 25, 2021
  20. DrahtBot locked this on Feb 15, 2022

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-14 09:14 UTC

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