mirror of
https://github.com/olikraus/u8g2.git
synced 2026-07-27 20:05:57 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user