(void)var statements must come after any variable definitions in strict c
This commit is contained in:
parent
b9b555eae2
commit
02dbca0454
1 changed files with 2 additions and 1 deletions
|
@ -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. */
|
/* Callback to render string boxes with word wrap. */
|
||||||
#if GDISP_NEED_TEXT_WORDWRAP
|
#if GDISP_NEED_TEXT_WORDWRAP
|
||||||
static bool mf_countline_callback(mf_str line, uint16_t count, void *state) {
|
static bool mf_countline_callback(mf_str line, uint16_t count, void *state) {
|
||||||
|
uint16_t *linecount;
|
||||||
(void) line;
|
(void) line;
|
||||||
(void) count;
|
(void) count;
|
||||||
|
|
||||||
uint16_t *linecount = (uint16_t*)state;
|
linecount = (uint16_t*)state;
|
||||||
(*linecount)++;
|
(*linecount)++;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue