Skip to content

Commit

Permalink
disable warning of unused param
Browse files Browse the repository at this point in the history
If LV_USE_BIDI undefined, than bidi_dir is not used and compiler generate warning.
  • Loading branch information
CrogST authored Dec 26, 2019
1 parent 9aa535e commit ca57643
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lv_draw/lv_draw_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
char *bidi_txt = lv_draw_get_buf(line_end - line_start + 1);
lv_bidi_process_paragraph(txt + line_start, bidi_txt, line_end - line_start, bidi_dir, NULL, 0);
#else
(void)bidir_dir;
const char *bidi_txt = txt + line_start;
#endif

Expand Down

0 comments on commit ca57643

Please sign in to comment.