Skip to content

Commit fad0c58

Browse files
author
MarcoFalke
committed
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()), ...); ^ ~~~~~~~~~~~ ~~~~~~
1 parent 912cb59 commit fad0c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void CallOneOf(FuzzedDataProvider& fuzzed_data_provider, Callables... callables)
4444
const size_t call_index{fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, call_size - 1)};
4545

4646
size_t i{0};
47-
return ((i++ == call_index ? callables() : void()), ...);
47+
((i++ == call_index ? callables() : void()), ...);
4848
}
4949

5050
template <typename Collection>

0 commit comments

Comments
 (0)