1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

ci: enable discarded-qualifiers warning

related to #3686
This commit is contained in:
Gabor Kiss-Vamosi 2022-09-19 14:26:24 +02:00
parent 24893c37ae
commit d78e927252
2 changed files with 2 additions and 4 deletions

View File

@ -244,7 +244,6 @@ set(LVGL_TEST_OPTIONS_TEST_COMMON
${LVGL_TEST_COMMON_EXAMPLE_OPTIONS}
-DLV_FONT_DEFAULT=&lv_font_montserrat_14
-Wno-unused-but-set-variable # unused variables are common in the dual-heap arrangement
-Wno-unused-variable
)
set(LVGL_TEST_OPTIONS_TEST_SYSHEAP
@ -298,7 +297,6 @@ set(COMPILE_OPTIONS
-Wmissing-prototypes
-Wpointer-arith
-Wmultichar
-Wno-discarded-qualifiers
-Wpedantic
-Wreturn-type
-Wshadow

View File

@ -18,13 +18,13 @@ static uint32_t value_received;
static void msg_cb(lv_msg_t * msg)
{
uint32_t * v = lv_msg_get_payload(msg);
const uint32_t * v = lv_msg_get_payload(msg);
value_received = *v;
}
static void event_cb(lv_event_t * e)
{
lv_msg_t * msg = lv_event_get_msg(e);
uint32_t * v = lv_msg_get_payload(msg);
const uint32_t * v = lv_msg_get_payload(msg);
lv_label_set_text_fmt(lv_event_get_target(e), "%d", *v);
}