From 1387d6480e8c2621a09f472cad29c6ca16bc65e6 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 20 Dec 2022 19:32:32 -0500 Subject: [PATCH] [Fix Red] consolidate bmp_read function between icons and skin_parser Change-Id: I642ec2272ac94233127d8670f6adee938e53bce0 --- apps/gui/skin_engine/skin_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 9495e34f5b..d99394eed0 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -1912,7 +1912,7 @@ static int buflib_move_callback(int handle, void* current, void* new) static int load_skin_bmp(struct wps_data *wps_data, struct bitmap *bitmap, char* bmpdir) { - static struct buflib_callbacks buflib_ops = {buflib_move_callback, NULL, NULL}; + (void)wps_data; /* only needed for remote targets */ char img_path[MAX_PATH]; @@ -1929,6 +1929,7 @@ static int load_skin_bmp(struct wps_data *wps_data, struct bitmap *bitmap, char* close(fd); return 1; #else /* load the image */ + static struct buflib_callbacks buflib_ops = {buflib_move_callback, NULL, NULL}; int handle; int bmpformat; ssize_t buf_reqd;