From 830dcdf0c3d0fda137b8acae7d583d8e1b637740 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Sun, 15 Feb 2026 13:48:07 +0100 Subject: [PATCH] fix: silence unused variable warning in assert(..) When assert(..) is a no-op, compilers may warn about the variable being unused. Explicitly marking it to silence the warning. --- csrc/u8g2_ll_hvline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/csrc/u8g2_ll_hvline.c b/csrc/u8g2_ll_hvline.c index 59ab4d17..72d7c0c8 100644 --- a/csrc/u8g2_ll_hvline.c +++ b/csrc/u8g2_ll_hvline.c @@ -77,6 +77,7 @@ void u8g2_ll_hvline_vertical_top_lsb(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, uint8_t or_mask, xor_mask; #ifdef __unix uint8_t *max_ptr = u8g2->tile_buf_ptr + u8g2_GetU8x8(u8g2)->display_info->tile_width*u8g2->tile_buf_height*8; + (void)max_ptr; /* silence unused variable warning if asserts are disabled */ #endif //assert(x >= u8g2->buf_x0);