diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-06-07 13:28:01 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-06-07 13:41:13 +0200 |
commit | fad0c58c3ecdf2a2a602ff39c9fd9dda7f8747d9 (patch) | |
tree | 46053ffe8ca4052dc2cdfde8d75a997a7e70d0ec /src/test/fuzz/util.h | |
parent | 912cb594901b1a5dd99aa4c00be34ae36512bc57 (diff) |
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()), ...);
^ ~~~~~~~~~~~ ~~~~~~
Diffstat (limited to 'src/test/fuzz/util.h')
-rw-r--r-- | src/test/fuzz/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h index 36b1d5035c..023dcdb3e5 100644 --- a/src/test/fuzz/util.h +++ b/src/test/fuzz/util.h @@ -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> |