From 1cbfc80f0fc12f8c54345a6a926db71289695c79 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Sat, 8 Jan 2022 18:35:48 +0100 Subject: [PATCH] llvmpipe: mark function unused build_masks is only used if neither PIPE_ARCH_SSE or _ARCH_PWR8 && UTIL_ARCH_LITTLE_ENDIAN. Adding a #if around build_masks feels a bit fragile so I opted for just marking it unused. Fixes a clang warning about unused static inlined functions. Reviewed-by: Eric Engestrom Reviewed-by: Yonggang Luo Part-of: --- src/gallium/drivers/llvmpipe/lp_rast_tri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c index b98f408b090..21539151971 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c @@ -93,7 +93,7 @@ build_mask_linear(int32_t c, int32_t dcdx, int32_t dcdy) } -static inline void +UNUSED static inline void build_masks(int32_t c, int32_t cdiff, int32_t dcdx,