mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-23 15:56:59 +08:00
chore(scale): fix compile warning (#6445)
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
@@ -696,11 +696,9 @@ static void scale_calculate_main_compensation(lv_obj_t * obj)
|
||||
lv_obj_init_draw_line_dsc(obj, LV_PART_ITEMS, &minor_tick_dsc);
|
||||
|
||||
uint32_t tick_idx = 0;
|
||||
uint32_t major_tick_idx = 0;
|
||||
for(tick_idx = 0; tick_idx < total_tick_count; tick_idx++) {
|
||||
|
||||
const bool is_major_tick = tick_idx % scale->major_tick_every == 0;
|
||||
if(is_major_tick) major_tick_idx++;
|
||||
|
||||
const int32_t tick_value = lv_map(tick_idx, 0U, total_tick_count - 1, scale->range_min, scale->range_max);
|
||||
|
||||
|
||||
@@ -198,7 +198,6 @@ if(NOT (CMAKE_C_COMPILER_ID STREQUAL "MSVC"))
|
||||
-Werror=float-conversion
|
||||
-Werror=strict-aliasing
|
||||
-Wno-double-promotion
|
||||
-Wno-unused-but-set-parameter
|
||||
-Wno-unreachable-code
|
||||
)
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user