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);