From 37e152647985f88a988d07fe05628b42c3d61607 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 10 May 2021 12:26:48 -0400 Subject: [PATCH] gallivm: Fix a signature mismatch warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc 11 says: ../src/gallium/auxiliary/gallivm/lp_bld_format_soa.c:84:49: warning: argument 3 of type ‘struct LLVMOpaqueValue * const*’ declared as a pointer [-Warray-parameter=] 84 | const LLVMValueRef *unswizzled, | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from ../src/gallium/auxiliary/gallivm/lp_bld_format_soa.c:42: ../src/gallium/auxiliary/gallivm/lp_bld_format.h:126:48: note: previously declared as an array ‘struct LLVMOpaqueValue * const[4]’ 126 | const LLVMValueRef unswizzled[4], | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ Reviewed-by: Dave Airlie Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_format_soa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c index 2a185cf9348..77e562206ea 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c @@ -81,7 +81,7 @@ convert_to_soa(struct gallivm_state *gallivm, void lp_build_format_swizzle_soa(const struct util_format_description *format_desc, struct lp_build_context *bld, - const LLVMValueRef *unswizzled, + const LLVMValueRef unswizzled[4], LLVMValueRef swizzled_out[4]) { if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) {