From 4ae2e65108fc5b0918ac9ea1df016d85a6ac18fa Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 21 Sep 2023 09:13:39 +0200 Subject: [PATCH] drivers/st77xx: fix compilation with NDEBUG --- drivers/st77xx/st7735_init.c | 1 + drivers/st77xx/st7789_init.c | 1 + drivers/st77xx/st7796_init.c | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/st77xx/st7735_init.c b/drivers/st77xx/st7735_init.c index 273e3fe9b0..7cea363ab5 100644 --- a/drivers/st77xx/st7735_init.c +++ b/drivers/st77xx/st7735_init.c @@ -142,6 +142,7 @@ static inline uint8_t _st7735_calc_vghl(uint16_t vgh, int16_t vgl, uint16_t avdd int st7735_init(lcd_t *dev, const lcd_params_t *params) { + (void)params; assert(params->lines <= 162); assert(params->rgb_channels <= 132); diff --git a/drivers/st77xx/st7789_init.c b/drivers/st77xx/st7789_init.c index b1ab9da9c0..ec15de5f61 100644 --- a/drivers/st77xx/st7789_init.c +++ b/drivers/st77xx/st7789_init.c @@ -124,6 +124,7 @@ static inline uint8_t _st7789_calc_vrh(int16_t vrh) int st7789_init(lcd_t *dev, const lcd_params_t *params) { + (void)params; assert(params->lines <= 320); assert(params->rgb_channels <= 240); diff --git a/drivers/st77xx/st7796_init.c b/drivers/st77xx/st7796_init.c index 8385d04b90..29f7207765 100644 --- a/drivers/st77xx/st7796_init.c +++ b/drivers/st77xx/st7796_init.c @@ -124,6 +124,7 @@ static inline uint8_t _st7796_calc_vrh(int16_t vrh) int st7796_init(lcd_t *dev, const lcd_params_t *params) { + (void)params; assert(params->lines <= 480); assert(params->rgb_channels <= 320);