summaryrefslogtreecommitdiff
path: root/third-party/benchmark/src/perf_counters.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/benchmark/src/perf_counters.cc')
-rw-r--r--third-party/benchmark/src/perf_counters.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third-party/benchmark/src/perf_counters.cc b/third-party/benchmark/src/perf_counters.cc
index 4ddf0de2502c..b2ac7687efef 100644
--- a/third-party/benchmark/src/perf_counters.cc
+++ b/third-party/benchmark/src/perf_counters.cc
@@ -49,7 +49,7 @@ PerfCounters PerfCounters::Create(
const int mode = PFM_PLM3; // user mode only
for (size_t i = 0; i < counter_names.size(); ++i) {
const bool is_first = i == 0;
- struct perf_event_attr attr{};
+ struct perf_event_attr attr {};
attr.size = sizeof(attr);
const int group_id = !is_first ? counter_ids[0] : -1;
const auto& name = counter_names[i];