Skip to content

Commit 7290fe6

Browse files
authored
Merge pull request #914 from LedgerHQ/tjo_ut_clang15
Build OS unit-tests with clang15
2 parents bfadded + 646f68d commit 7290fe6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib_bagl/src/bagl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,9 @@ void bagl_draw_with_context(const bagl_component_t *component,
731731
int halignment = 0;
732732
int valignment = 0;
733733
int baseline = 0;
734+
#ifndef DISPLAY_FLOWS
734735
unsigned int height_to_draw = 0;
736+
#endif
735737
int strwidth = 0;
736738
unsigned int ellipsis_1_len = 0;
737739
#ifdef HAVE_BAGL_ELLIPSIS
@@ -781,8 +783,9 @@ void bagl_draw_with_context(const bagl_component_t *component,
781783
const bagl_font_t *font = bagl_get_font(component->font_id);
782784
if (font) {
783785
baseline = font->baseline;
786+
#ifndef DISPLAY_FLOWS
784787
height_to_draw = component->height;
785-
788+
#endif
786789
if (context && context_length) {
787790
// compute with some margin to fit other characters and check if ellipsis algorithm
788791
// is required

0 commit comments

Comments
 (0)