diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 488f4c5c1..68a36bf72 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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 diff --git a/tests/src/test_cases/test_msg.c b/tests/src/test_cases/test_msg.c index 1e18568d8..b545a99c9 100644 --- a/tests/src/test_cases/test_msg.c +++ b/tests/src/test_cases/test_msg.c @@ -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); }