fix(include) remove unused stdio includes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "../../lv_examples.h"
|
||||
#include <stdio.h>
|
||||
#if LV_USE_BTN && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "../../lv_examples.h"
|
||||
#include <stdio.h>
|
||||
#if LV_BUILD_EXAMPLES && LV_USE_BTN
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,7 @@ CSRCS += lv_obj_pos.c
|
||||
CSRCS += lv_obj_scroll.c
|
||||
CSRCS += lv_obj_style.c
|
||||
CSRCS += lv_obj_tree.c
|
||||
CSRCS += lv_event.c
|
||||
CSRCS += lv_refr.c
|
||||
CSRCS += lv_theme.c
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include "lv_draw_mask.h"
|
||||
#include "lv_draw_blend.h"
|
||||
|
||||
@@ -660,7 +660,7 @@ static lv_color_t angle_to_mode_color_fast(lv_obj_t * obj, uint16_t angle)
|
||||
fast_hsv2rgb(h, s, angle, &r, &g, &b);
|
||||
break;
|
||||
}
|
||||
return LV_COLOR_MAKE(r, g, b);
|
||||
return (lv_color_t)LV_COLOR_MAKE(r, g, b);
|
||||
}
|
||||
|
||||
static uint16_t get_angle(lv_obj_t * obj)
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
*********************/
|
||||
#include "lv_math.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -4,9 +4,6 @@
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lv_tlsf.h"
|
||||
|
||||
@@ -1265,7 +1262,7 @@ void* tlsf_realloc(tlsf_t tlsf, void* ptr, size_t size)
|
||||
if (p)
|
||||
{
|
||||
const size_t minsize = tlsf_min(cursize, size);
|
||||
memcpy(p, ptr, minsize);
|
||||
lv_memcpy(p, ptr, minsize);
|
||||
tlsf_free(tlsf, ptr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "../draw/lv_draw.h"
|
||||
#include "../misc/lv_anim.h"
|
||||
#include "../misc/lv_math.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include <stdlib.h>
|
||||
#include "lv_canvas.h"
|
||||
#include "../misc/lv_assert.h"
|
||||
#include "../misc/lv_math.h"
|
||||
|
||||
Reference in New Issue
Block a user