llvmpipe: mark function unused
authorThomas H.P. Andersen <phomes@gmail.com>
Sat, 8 Jan 2022 17:35:48 +0000 (18:35 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sun, 25 Sep 2022 03:53:15 +0000 (03:53 +0000)
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 <eric@igalia.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18800>

src/gallium/drivers/llvmpipe/lp_rast_tri.c

index b98f408..2153915 100644 (file)
@@ -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,