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:
MarcoFalke 2021-06-07 13:28:01 +02:00
parent 912cb59490
commit fad0c58c3e
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -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>