From a5f5d2608056ab5d65c31c18f3fc88e4b16467b1 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Mon, 24 Feb 2025 17:34:05 -0800 Subject: [PATCH] gallium: drop const qualifier on return type Observed the following error with -Werror enabled: nir_to_tgsi.c:550:8: error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers] Acked-By: Mike Blumenkrantz Part-of: --- src/gallium/auxiliary/nir/nir_to_tgsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c index 4bb5c9a64f8..1f35780bd6c 100644 --- a/src/gallium/auxiliary/nir/nir_to_tgsi.c +++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c @@ -548,7 +548,7 @@ ntt_allocate_regs_unoptimized(struct ntt_compile *c, nir_function_impl *impl) * nir_src's first component, returning the constant offset and replacing *src * with the non-constant component. */ -static const uint32_t +static uint32_t ntt_extract_const_src_offset(nir_src *src) { nir_scalar s = nir_get_scalar(src->ssa, 0);