Fix -Wunused-variable error.
Bug: None Change-Id: I13ca43b15f1519e5ce5c17b6eb0b6611dbd20c39 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176505 Commit-Queue: Markus Handell <handellm@webrtc.org> Reviewed-by: Markus Handell <handellm@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31450}
This commit is contained in:

committed by
Commit Bot

parent
301eb5370b
commit
b2f73040fc
@ -33,11 +33,9 @@ class PerfTestData {
|
|||||||
int64_t my_counter_ = 0;
|
int64_t my_counter_ = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO(bugs.webrtc.org/11630): remove NOLINT when linter supports mutable
|
void BM_LockWithMutex(benchmark::State& state) {
|
||||||
// references.
|
|
||||||
void BM_LockWithMutex(benchmark::State& state) { // NOLINT
|
|
||||||
static PerfTestData test_data;
|
static PerfTestData test_data;
|
||||||
for (auto s : state) {
|
for (auto it = state.begin(); it != state.end(); ++it) {
|
||||||
benchmark::DoNotOptimize(test_data.AddToCounter(2));
|
benchmark::DoNotOptimize(test_data.AddToCounter(2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user