From d4e56930c25dec3bfb7fc590df45904e41216b25 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 9 Jul 2020 10:06:08 -0700 Subject: [PATCH] intel/perf: Fix unused var warning in release builds. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/perf/gen_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/perf/gen_perf.c b/src/intel/perf/gen_perf.c index 26dc497e486..f31b15aa4b2 100644 --- a/src/intel/perf/gen_perf.c +++ b/src/intel/perf/gen_perf.c @@ -866,7 +866,7 @@ gen_perf_get_counters_passes(struct gen_perf_config *perf, struct gen_perf_counter_pass *counter_pass) { uint64_t queries_mask = get_passes_mask(perf, counter_indices, counter_indices_count); - uint32_t n_passes = __builtin_popcount(queries_mask); + ASSERTED uint32_t n_passes = __builtin_popcount(queries_mask); for (uint32_t i = 0; i < counter_indices_count; i++) { assert(counter_indices[i] < perf->n_counters); -- 2.30.2