diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-08 22:36:59 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-08 22:36:59 +0100 |
commit | 54b76a7568bfac0cfee1e3ce583c5cefa9578c66 (patch) | |
tree | 3207430fb08ec68b13772db79e3a37dbf539120f /src/gwin | |
parent | 0b144795979feaa8f232a85ab45dba8bfbf37dac (diff) | |
download | uGFX-54b76a7568bfac0cfee1e3ce583c5cefa9578c66.tar.gz uGFX-54b76a7568bfac0cfee1e3ce583c5cefa9578c66.tar.bz2 uGFX-54b76a7568bfac0cfee1e3ce583c5cefa9578c66.zip |
Fixing compiler errors for non-GCC compilers
Diffstat (limited to 'src/gwin')
-rw-r--r-- | src/gwin/gwin_button.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gwin/gwin_button.c b/src/gwin/gwin_button.c index 51b126b8..75327b8b 100644 --- a/src/gwin/gwin_button.c +++ b/src/gwin/gwin_button.c @@ -168,6 +168,7 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { #if GWIN_FLAT_STYLING void gwinButtonDraw_Normal(GWidgetObject *gw, void *param) { const GColorSet * pcol; + (void) param; if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; @@ -187,6 +188,7 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { fixed dalpha; coord_t i; color_t tcol, bcol; + (void) param; if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; @@ -211,6 +213,7 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { #if GDISP_NEED_ARC void gwinButtonDraw_Rounded(GWidgetObject *gw, void *param) { const GColorSet * pcol; + (void) param; if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; @@ -231,6 +234,7 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { #if GDISP_NEED_ELLIPSE void gwinButtonDraw_Ellipse(GWidgetObject *gw, void *param) { const GColorSet * pcol; + (void) param; if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; @@ -246,9 +250,10 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { #if GDISP_NEED_CONVEX_POLYGON void gwinButtonDraw_ArrowUp(GWidgetObject *gw, void *param) { const GColorSet * pcol; - (void) param; point arw[7]; + (void) param; + if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; pcol = getButtonColors(gw); @@ -296,9 +301,10 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { void gwinButtonDraw_ArrowDown(GWidgetObject *gw, void *param) { const GColorSet * pcol; - (void) param; point arw[7]; + (void) param; + if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; pcol = getButtonColors(gw); @@ -346,9 +352,10 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { void gwinButtonDraw_ArrowLeft(GWidgetObject *gw, void *param) { const GColorSet * pcol; - (void) param; point arw[7]; + (void) param; + if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; pcol = getButtonColors(gw); @@ -396,8 +403,9 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) { void gwinButtonDraw_ArrowRight(GWidgetObject *gw, void *param) { const GColorSet * pcol; - (void) param; point arw[7]; + + (void) param; if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; pcol = getButtonColors(gw); |