Fix compiler warnings

This commit is contained in:
fvanroie 2021-04-25 06:02:41 +02:00
parent 2c3b383d4f
commit afe71a648e
4 changed files with 13 additions and 12 deletions

View File

@ -156,7 +156,7 @@ lv_res_t lv_qrcode_update2(lv_obj_t* qrcode, const void* data, uint32_t data_len
lv_img_decoder_dsc_t dec_dsc; lv_img_decoder_dsc_t dec_dsc;
lv_res_t res = lv_img_decoder_open(&dec_dsc, ext->src, LV_COLOR_CYAN); lv_res_t res = lv_img_decoder_open(&dec_dsc, ext->src, LV_COLOR_CYAN);
(void)res; (void)res; // unused
for(int y = 0; y < dec_dsc.header.h; y++) { for(int y = 0; y < dec_dsc.header.h; y++) {
for(int x = 0; x < dec_dsc.header.w; x++) { for(int x = 0; x < dec_dsc.header.w; x++) {

View File

@ -278,7 +278,7 @@ void haspProgressMsg(const __FlashStringHelper* msg)
/*Add a custom apply callback*/ /*Add a custom apply callback*/
static void custom_font_apply_cb(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t name) static void custom_font_apply_cb(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t name)
{ {
lv_style_list_t* list; /* lv_style_list_t* list;
switch(name) { switch(name) {
case LV_THEME_BTN: case LV_THEME_BTN:
@ -288,7 +288,7 @@ static void custom_font_apply_cb(lv_theme_t* th, lv_obj_t* obj, lv_theme_style_t
default: default:
// nothing // nothing
; ;
} } */
} }
/** /**

View File

@ -307,7 +307,7 @@ void my_btnmatrix_map_clear(lv_obj_t* obj)
static void my_btnmatrix_map_create(lv_obj_t* obj, const char* payload) static void my_btnmatrix_map_create(lv_obj_t* obj, const char* payload)
{ {
const char** map_p = lv_btnmatrix_get_map_array(obj); // const char** map_p = lv_btnmatrix_get_map_array(obj);
// Create new map // Create new map
// Reserve memory for JsonDocument // Reserve memory for JsonDocument

View File

@ -190,6 +190,7 @@ void guiSetup(void)
disp_drv.ver_res = TFT_HEIGHT; disp_drv.ver_res = TFT_HEIGHT;
} }
lv_disp_t* display = lv_disp_drv_register(&disp_drv); lv_disp_t* display = lv_disp_drv_register(&disp_drv);
(void)display; // unused
/* Initialize Filesystems */ /* Initialize Filesystems */
#if LV_USE_FS_IF != 0 #if LV_USE_FS_IF != 0