From 92a47ba1ae40990b837923162788331e4cadec2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Fri, 14 Apr 2023 11:26:10 +0200 Subject: [PATCH] llvmpipe: Make lp_build_interp_soa declaration match its definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Pointed out by GCC 13: ../src/gallium/drivers/llvmpipe/lp_bld_interp.c:545:1: warning: conflicting types for ‘lp_build_interp_soa’ due to enum/integer mismatch; have ‘struct LLVMOpaqueValue *(struct lp_build_interp_soa_context *, struct gallivm_state *, struct LLVMOpaqueValue *, struct LLVMOpaqueType *, struct LLVMOpaqueValue *, unsigned int, unsigned int, enum tgsi_interpolate_loc, struct LLVMOpaqueValue *, struct LLVMOpaqueValue **)’ [-Wenum-int-mismatch] 545 | lp_build_interp_soa(struct lp_build_interp_soa_context *bld, | ^~~~~~~~~~~~~~~~~~~ In file included from ../src/gallium/drivers/llvmpipe/lp_bld_interp.c:50: ../src/gallium/drivers/llvmpipe/lp_bld_interp.h:154:1: note: previous declaration of ‘lp_build_interp_soa’ with type ‘struct LLVMOpaqueValue *(struct lp_build_interp_soa_context *, struct gallivm_state *, struct LLVMOpaqueValue *, struct LLVMOpaqueType *, struct LLVMOpaqueValue *, unsigned int, unsigned int, unsigned int, struct LLVMOpaqueValue *, struct LLVMOpaqueValue **)’ 154 | lp_build_interp_soa(struct lp_build_interp_soa_context *bld, | ^~~~~~~~~~~~~~~~~~~ Part-of: --- src/gallium/drivers/llvmpipe/lp_bld_interp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_bld_interp.h b/src/gallium/drivers/llvmpipe/lp_bld_interp.h index 445c865..34e44ac 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_interp.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_interp.h @@ -157,7 +157,7 @@ lp_build_interp_soa(struct lp_build_interp_soa_context *bld, LLVMTypeRef mask_type, LLVMValueRef mask_store, unsigned attrib, unsigned chan, - unsigned loc, + enum tgsi_interpolate_loc loc, LLVMValueRef indir_index, LLVMValueRef offsets[2]); -- 2.7.4