From 49c658972f7614e9660fb86fe4303798b129f5b9 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Tue, 5 May 2026 06:32:13 +0200 Subject: [PATCH] ir3: mark __alias_n as UNUSED in foreach_src_in_alias_group_n Recent versions of GCC started throwing a warning here when this macro is used from foreach_src_in_alias_group. Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index fafa51f1842..9d5351e6386 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -13,6 +13,7 @@ #include "util/bitscan.h" #include "util/list.h" +#include "util/macros.h" #include "util/set.h" #include "util/u_debug.h" @@ -1928,7 +1929,7 @@ ir3_src_is_first_in_group(struct ir3_register *src) #define foreach_src_in_alias_group_n(__alias, __alias_n, __instr, __start) \ for (struct ir3_register *__alias = __instr->srcs[__start]; \ __alias && (__alias->flags & IR3_REG_FIRST_ALIAS); __alias = NULL) \ - for (unsigned __i = __start, __alias_n = 0; \ + for (unsigned __i = __start, UNUSED __alias_n = 0; \ __i < __instr->srcs_count && \ (__i == __start || !ir3_src_is_first_in_group(__instr->srcs[__i])); \ __i++, __alias_n++) \