Fixing compiler warnings
pull-request sent to upstream
This commit is contained in:
parent
f4c46e313d
commit
69de17687c
@ -130,7 +130,6 @@ static bool append_char(const struct mf_font_s *font, int16_t width,
|
||||
}
|
||||
}
|
||||
|
||||
static int16_t abs16(int16_t x) { return (x > 0) ? x : -x; }
|
||||
static int32_t sq16(int16_t x) { return (int32_t)x * x; }
|
||||
|
||||
/* Try to balance the lines by potentially moving one word from the previous
|
||||
@ -173,8 +172,8 @@ static void tune_lines(struct linelen_s *current, struct linelen_s *previous,
|
||||
void mf_wordwrap(const struct mf_font_s *font, int16_t width,
|
||||
mf_str text, mf_line_callback_t callback, void *state)
|
||||
{
|
||||
struct linelen_s current = {};
|
||||
struct linelen_s previous = {};
|
||||
struct linelen_s current;
|
||||
struct linelen_s previous;
|
||||
bool full;
|
||||
|
||||
current.start = text;
|
||||
|
Loading…
Reference in New Issue
Block a user