aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/bench_bitvec.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/bench_bitvec.cpp b/test/bench_bitvec.cpp
index 3c7d7f6..6580af9 100644
--- a/test/bench_bitvec.cpp
+++ b/test/bench_bitvec.cpp
@@ -132,6 +132,8 @@ struct BenchNone
{
T v = make_random_bitvec<T, N>(ctx);
bool r = false;
+ (void)r;
+
return run_bench([&](auto) { r = v.none(); });
}
};
@@ -143,6 +145,8 @@ struct BenchCount
{
T v = make_random_bitvec<T, N>(ctx);
volatile size_t r = 0;
+ (void)r;
+
return run_bench([&](auto) { r = v.count(); });
}
};
@@ -186,6 +190,8 @@ struct BenchRightRotate
{
T v = make_random_bitvec<T, N>(ctx);
volatile bool r = false;
+ (void)r;
+
return run_bench([&](const auto i) {
v.rotr(i % N);
r = v.test(0);
@@ -200,6 +206,8 @@ struct BenchFindFirst
{
T v = make_random_bitvec<T, N>(ctx);
volatile size_t r = 0;
+ (void)r;
+
return run_bench([&](auto) { r = v.find_first(); });
}
};