diff --git a/benchmarks/matching_benchmarks.c b/benchmarks/matching_benchmarks.c index c98cc12..79a5f2d 100644 --- a/benchmarks/matching_benchmarks.c +++ b/benchmarks/matching_benchmarks.c @@ -31,9 +31,11 @@ static void matching_benchmark(const fsa_t *fsa) for (int j = 0; j < LEN; ++j) s[j] = CLAMP_CHAR(rand()); + volatile bool match; START_CLOCK(); - fsa_accepts(fsa, s, LEN); + match = fsa_accepts(fsa, s, LEN); STOP_CLOCK(); + (void)match; } int main(void)