aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-10-20 21:58:52 +0200
committerJoel Bodenmann <joel@unormal.org>2013-10-20 21:58:52 +0200
commitb49f7cd3aa0599bed868af726dde2831e56191af (patch)
tree178bab7a09d3be251892be64a23f6620ae074809 /src
parent8eb890a5d6f44aa0163fb5bc9d462779e23dfd6c (diff)
downloaduGFX-b49f7cd3aa0599bed868af726dde2831e56191af.tar.gz
uGFX-b49f7cd3aa0599bed868af726dde2831e56191af.tar.bz2
uGFX-b49f7cd3aa0599bed868af726dde2831e56191af.zip
compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/gdisp/image_gif.c2
-rw-r--r--src/gwin/gimage.c2
2 files changed, 3 insertions, 1 deletions
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;