From: Eric Anholt Date: Thu, 9 Jul 2020 17:06:08 +0000 (-0700) Subject: intel/perf: Fix unused var warning in release builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4e56930c25dec3bfb7fc590df45904e41216b25;p=mesa.git intel/perf: Fix unused var warning in release builds. Reviewed-by: Lionel Landwerlin Part-of: --- 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);