fix(include) remove unused stdio includes

This commit is contained in:
Gabor Kiss-Vamosi
2021-04-24 17:25:41 +02:00
parent 38b4ff6b4c
commit 5d4c9fac83
9 changed files with 3 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
#include "../../lv_examples.h" #include "../../lv_examples.h"
#include <stdio.h>
#if LV_USE_BTN && LV_BUILD_EXAMPLES #if LV_USE_BTN && LV_BUILD_EXAMPLES
/** /**

View File

@@ -1,5 +1,4 @@
#include "../../lv_examples.h" #include "../../lv_examples.h"
#include <stdio.h>
#if LV_BUILD_EXAMPLES && LV_USE_BTN #if LV_BUILD_EXAMPLES && LV_USE_BTN
/** /**

View File

@@ -9,6 +9,7 @@ CSRCS += lv_obj_pos.c
CSRCS += lv_obj_scroll.c CSRCS += lv_obj_scroll.c
CSRCS += lv_obj_style.c CSRCS += lv_obj_style.c
CSRCS += lv_obj_tree.c CSRCS += lv_obj_tree.c
CSRCS += lv_event.c
CSRCS += lv_refr.c CSRCS += lv_refr.c
CSRCS += lv_theme.c CSRCS += lv_theme.c

View File

@@ -6,7 +6,6 @@
/********************* /*********************
* INCLUDES * INCLUDES
*********************/ *********************/
#include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include "lv_draw_mask.h" #include "lv_draw_mask.h"
#include "lv_draw_blend.h" #include "lv_draw_blend.h"

View File

@@ -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); fast_hsv2rgb(h, s, angle, &r, &g, &b);
break; 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) static uint16_t get_angle(lv_obj_t * obj)

View File

@@ -8,8 +8,6 @@
*********************/ *********************/
#include "lv_math.h" #include "lv_math.h"
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h>
#include <string.h>
/********************* /*********************
* DEFINES * DEFINES

View File

@@ -4,9 +4,6 @@
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lv_tlsf.h" #include "lv_tlsf.h"
@@ -1265,7 +1262,7 @@ void* tlsf_realloc(tlsf_t tlsf, void* ptr, size_t size)
if (p) if (p)
{ {
const size_t minsize = tlsf_min(cursize, size); const size_t minsize = tlsf_min(cursize, size);
memcpy(p, ptr, minsize); lv_memcpy(p, ptr, minsize);
tlsf_free(tlsf, ptr); tlsf_free(tlsf, ptr);
} }
} }

View File

@@ -13,7 +13,6 @@
#include "../draw/lv_draw.h" #include "../draw/lv_draw.h"
#include "../misc/lv_anim.h" #include "../misc/lv_anim.h"
#include "../misc/lv_math.h" #include "../misc/lv_math.h"
#include <stdio.h>
/********************* /*********************
* DEFINES * DEFINES

View File

@@ -6,7 +6,6 @@
/********************* /*********************
* INCLUDES * INCLUDES
*********************/ *********************/
#include <stdlib.h>
#include "lv_canvas.h" #include "lv_canvas.h"
#include "../misc/lv_assert.h" #include "../misc/lv_assert.h"
#include "../misc/lv_math.h" #include "../misc/lv_math.h"