From 64425a0884cc8f18881e8d36a53c610e576c2325 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 14 Oct 2020 13:13:53 -0700 Subject: [PATCH] picture_tools_enc: fix windows build warning with WebPReplaceTransparentPixels() function signature: src\enc\picture_tools_enc.c(86): warning C4028: formal parameter 1 different from declaration Change-Id: I0140d61b0dfebcbb4189707e8f2f4b1af802a4d7 --- src/enc/picture_tools_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/picture_tools_enc.c b/src/enc/picture_tools_enc.c index 5cc25c5f..38cb0153 100644 --- a/src/enc/picture_tools_enc.c +++ b/src/enc/picture_tools_enc.c @@ -83,7 +83,7 @@ static int SmoothenBlock(const uint8_t* a_ptr, int a_stride, uint8_t* y_ptr, return (count == 0); } -void WebPReplaceTransparentPixels(WebPPicture* pic, uint32_t color) { +void WebPReplaceTransparentPixels(WebPPicture* const pic, uint32_t color) { if (pic != NULL && pic->use_argb) { int y = pic->height; uint32_t* argb = pic->argb;