From 54b76a7568bfac0cfee1e3ce583c5cefa9578c66 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 8 Nov 2015 22:36:59 +0100 Subject: [PATCH] Fixing compiler errors for non-GCC compilers --- src/gwin/gwin_button.c | 16 ++++++++++++---- 1 file 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);