aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorinmarket <inmarket@ugfx.org>2016-08-13 11:46:32 +1000
committerinmarket <inmarket@ugfx.org>2016-08-13 11:46:32 +1000
commit02dbca0454ae58193d828dd990b87a61111219dd (patch)
tree16d22d0b4ffe195946038279032bc7fc0d49eb6b /src
parentb9b555eae26a539ee71b30668f8e3fdb343e6ac1 (diff)
downloaduGFX-02dbca0454ae58193d828dd990b87a61111219dd.tar.gz
uGFX-02dbca0454ae58193d828dd990b87a61111219dd.tar.bz2
uGFX-02dbca0454ae58193d828dd990b87a61111219dd.zip
(void)var statements must come after any variable definitions in strict c
Diffstat (limited to 'src')
-rw-r--r--src/gdisp/gdisp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c
index d25a9d55..23134f1f 100644
--- a/src/gdisp/gdisp.c
+++ b/src/gdisp/gdisp.c
@@ -3170,10 +3170,11 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
/* Callback to render string boxes with word wrap. */
#if GDISP_NEED_TEXT_WORDWRAP
static bool mf_countline_callback(mf_str line, uint16_t count, void *state) {
+ uint16_t *linecount;
(void) line;
(void) count;
- uint16_t *linecount = (uint16_t*)state;
+ linecount = (uint16_t*)state;
(*linecount)++;
return TRUE;