assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
How to pass const in lv_obj_add_style? There are macros described in last part of Styles — LVGL documentation but there is no example of how to use them. Docs are quiet after this mention of their existance.
lv_obj_add_style(obj1, &styl1, 0);
No warning becouse of const in makro
lv_obj_add_style(obj1, (lv_style_t*)&styl1, 0);