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.
This commit is contained in:
Bas Stottelaar
2026-03-01 22:22:43 +01:00
parent acd6667d45
commit 830dcdf0c3
+1
View File
@@ -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);