HomePhabricator

Fix a -Wreturn-type warning with GCC

Description

Fix a -Wreturn-type warning with GCC

Summary: The RPCArg::ToStringObj method is supposed to return a string, but in the case of an unused type conversion it will raise an error and not return anything.

Test Plan:
With GCC 12:

ninja

Check the warning is gone.

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Subscribers: sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D12947

Details

Provenance
FabienAuthored on Jan 4 2023, 15:23
FabienPushed on Jan 5 2023, 21:11
Reviewer
Restricted Project
Differential Revision
D12947: Fix a -Wreturn-type warning with GCC
Parents
rABC71f04545b8c2: [avalanche] Add logging when a block is parked due to conflict with avalanche…
Branches
Unknown
Tags
Unknown