diff options
| author | fanquake <[email protected]> | 2020-10-19 10:38:48 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2020-10-19 11:07:11 +0800 |
| commit | a1e0359618e3a66d0156d2b0a4702bc55f957a3f (patch) | |
| tree | 0c4632f89e2bf3c3e0aaccb0d8159ee20aff7f0e /src/script/script.cpp | |
| parent | Merge #19911: net: guard vRecvGetData with cs_vRecv and orphan_work_set with ... (diff) | |
| parent | refactor: Clean up -Wlogical-op warning (diff) | |
| download | discoin-a1e0359618e3a66d0156d2b0a4702bc55f957a3f.tar.xz discoin-a1e0359618e3a66d0156d2b0a4702bc55f957a3f.zip | |
Merge #19986: refactor: clean up -Wlogical-op warning in wallet/scriptpubkeyman.cp
95fedd33a23d6cb7542378afef229965f1ebfd68 refactor: Clean up -Wlogical-op warning (maskoficarus)
Pull request description:
This is a quick patch that fixes #19912 . This change prevents a -Wlogical-op warning that occurs because we're treating a const int value as a boolean. There's no sense checking if a non-zero constant has a value, so I've removed the check.
#18836 also addresses the same warning, but has a larger scope and will require more review. This pull request will act as a patch to prevent this compile warning until 18836 is merged.
ACKs for top commit:
MarcoFalke:
review ACK 95fedd33a23d6cb7542378afef229965f1ebfd68
hebasto:
ACK 95fedd33a23d6cb7542378afef229965f1ebfd68, tested on Linux Mint 20 (x86_64):
Tree-SHA512: 13a9d7f7cb472f4c22a01ca2f9771a75267ff769bdae9d0dc6b2c7f3b05369f6dfa859be2b172b39c15ede6c44cddf556380b3565e42850faa65ccd3fe6e175b
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions