From cc9653577869e60e3decf353ea544e9e29c4f37a Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 25 Nov 2021 11:47:26 +0900 Subject: [PATCH] sw_engine raster: fix compiler warnings. popped up unused-functions when simd enabled. --- src/lib/sw_engine/tvgSwRasterC.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/sw_engine/tvgSwRasterC.h b/src/lib/sw_engine/tvgSwRasterC.h index 9b463618..15f2d6dd 100644 --- a/src/lib/sw_engine/tvgSwRasterC.h +++ b/src/lib/sw_engine/tvgSwRasterC.h @@ -21,14 +21,14 @@ */ -static void cRasterRGBA32(uint32_t *dst, uint32_t val, uint32_t offset, int32_t len) +static void inline cRasterRGBA32(uint32_t *dst, uint32_t val, uint32_t offset, int32_t len) { dst += offset; while (len--) *dst++ = val; } -static bool cRasterTranslucentRle(SwSurface* surface, const SwRleData* rle, uint32_t color) +static bool inline cRasterTranslucentRle(SwSurface* surface, const SwRleData* rle, uint32_t color) { auto span = rle->spans; uint32_t src; @@ -47,7 +47,7 @@ static bool cRasterTranslucentRle(SwSurface* surface, const SwRleData* rle, uint } -static bool cRasterTranslucentRect(SwSurface* surface, const SwBBox& region, uint32_t color) +static bool inline cRasterTranslucentRect(SwSurface* surface, const SwBBox& region, uint32_t color) { auto buffer = surface->buffer + (region.min.y * surface->stride) + region.min.x; auto h = static_cast(region.max.y - region.min.y);