From c63c5df618fe479d087e7c5c542ee74489387165 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 28 Jul 2023 09:07:11 -0700 Subject: [PATCH] palette.c: fix msvc warnings after: 1432ebba Refactor palette sorting computation. fixes: src\utils\palette.c(384): warning C4028: formal parameter 2 different from declaration src\utils\palette.c(384): warning C4028: formal parameter 3 different from declaration src\utils\palette.c(384): warning C4028: formal parameter 5 different from declaration Change-Id: If29205f346e674108646045b7a3d90f078fed9b0 --- src/utils/palette.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/palette.h b/src/utils/palette.h index 76a41285..34479e46 100644 --- a/src/utils/palette.h +++ b/src/utils/palette.h @@ -53,8 +53,8 @@ int GetColorPalette(const struct WebPPicture* const pic, // Sorts the palette according to the criterion defined by 'method'. // 'palette_sorted' is the input palette sorted lexicographically, as done in // PrepareMapToPalette. Returns 0 on memory allocation error. -int PaletteSort(PaletteSorting method, const struct WebPPicture* pic, - const uint32_t* palette_sorted, uint32_t num_colors, - uint32_t* palette); +int PaletteSort(PaletteSorting method, const struct WebPPicture* const pic, + const uint32_t* const palette_sorted, uint32_t num_colors, + uint32_t* const palette); #endif // WEBP_UTILS_PALETTE_H_