HomePhabricator

fuzz: use std::optional for sep_pos variable

Description

fuzz: use std::optional for sep_pos variable

Summary:

This PR changes the original size_t sep_pos to std::optional<size_t>
sep_post_opt to remove the warning when compiling fuzz tests.

Backport of core PR18901.

Note that we don't have the warning for some reason.

Test Plan:

ninja bitcoin-fuzzers
./src/test/fuzz/asmap_direct <path_to_corpus>

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Harris <brakmic@gmail.com>Authored on May 9 2020, 09:09
FabienCommitted on Jan 26 2021, 12:30
FabienPushed on Jan 26 2021, 12:32
Reviewer
Restricted Project
Differential Revision
D9060: fuzz: use std::optional for sep_pos variable
Parents
rABCeb81b068cd88: fuzz: fix vector size problem in system fuzzer
Branches
Unknown
Tags
Unknown