disable warning of unused param

If LV_USE_BIDI undefined, than bidi_dir is not used and compiler generate warning.
This commit is contained in:
CrogST
2019-12-26 13:50:59 +03:00
committed by GitHub
parent 9aa535e30d
commit ca576434e2

View File

@@ -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