Page MenuHomePhabricator

[backport#16995] refactor: Work around GCC 9 `-Wredundant-move` warning

Authored by majcosta on May 20 2020, 15:25.



Use std::move workaround for unique_ptr, for when the C++ compiler lacks
a fix for this issue:
Do this in a way that avoids a GCC 9 -Wredundant-move warning.

This completes the backport of Core PR16995

Test Plan
ninja check

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

deadalnix requested changes to this revision.May 20 2020, 17:11
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
267 ↗(On Diff #20360)

Comment on its own line.

This revision now requires changes to proceed.May 20 2020, 17:11

placed comment on its own line

This revision is now accepted and ready to land.May 21 2020, 00:12