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:
Mirko Bonadei
2020-06-04 17:40:21 +02:00
committed by Commit Bot
parent 301eb5370b
commit b2f73040fc

View File

@ -33,11 +33,9 @@ class PerfTestData {
int64_t my_counter_ = 0;
};
// TODO(bugs.webrtc.org/11630): remove NOLINT when linter supports mutable
// references.
void BM_LockWithMutex(benchmark::State& state) { // NOLINT
void BM_LockWithMutex(benchmark::State& state) {
static PerfTestData test_data;
for (auto s : state) {
for (auto it = state.begin(); it != state.end(); ++it) {
benchmark::DoNotOptimize(test_data.AddToCounter(2));
}
}