mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
fuzz: Remove confusing return keyword from CallOneOf
The return type is already enforced to be void by the ternary operator: ./test/fuzz/util.h:47:25: error: right operand to ? is void, but left operand is of type *OTHER_TYPE* ((i++ == call_index ? callables() : void()), ...); ^ ~~~~~~~~~~~ ~~~~~~
This commit is contained in:
parent
912cb59490
commit
fad0c58c3e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ void CallOneOf(FuzzedDataProvider& fuzzed_data_provider, Callables... callables)
|
|||
const size_t call_index{fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, call_size - 1)};
|
||||
|
||||
size_t i{0};
|
||||
return ((i++ == call_index ? callables() : void()), ...);
|
||||
((i++ == call_index ? callables() : void()), ...);
|
||||
}
|
||||
|
||||
template <typename Collection>
|
||||
|
|
Loading…
Add table
Reference in a new issue