cmake: apply -Werror to generated test TUs and fix exposed warnings (X-QA-01)
This commit is contained in:
1 parent
65185f251c
commit
77a2bce73f
3 files changed
+16
-1
No files matched your search
@@ -35,6 +35,7 @@ Void::Testing::Test bench_run_total_positive()
|
||||
const auto r = run("work", 100, [] {
|
||||
volatile int x = 0;
|
||||
for (int i = 0; i < 100; ++i) x += i;
|
||||
do_not_optimize(x);
|
||||
}, 0);
|
||||
Void::Testing::expect(r.total.count() >= 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user