From b49f7cd3aa0599bed868af726dde2831e56191af Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 20 Oct 2013 21:58:52 +0200 Subject: [PATCH] compiler warnings --- src/gdisp/image_gif.c | 2 +- src/gwin/gimage.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gdisp/image_gif.c b/src/gdisp/image_gif.c index 502fa3ad..d067bd0f 100644 --- a/src/gdisp/image_gif.c +++ b/src/gdisp/image_gif.c @@ -823,7 +823,7 @@ baddatacleanup: gdispImageError gdispImageDraw_GIF(gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy) { gdispImagePrivate * priv; imgdecode * decode; - uint8_t * q; + uint8_t * q = 0; coord_t mx, my, fx, fy; uint16_t cnt, gcnt; uint8_t col; diff --git a/src/gwin/gimage.c b/src/gwin/gimage.c index 35ca1c6d..8eed3ac7 100644 --- a/src/gwin/gimage.c +++ b/src/gwin/gimage.c @@ -41,6 +41,8 @@ static void _redraw(GHandle gh) { #endif // The default display area + dx = 0; + dy = 0; x = gh->x; y = gh->y; w = gh->width;