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 <stdio.h>
#if LV_USE_BTN && LV_BUILD_EXAMPLES
/**

View File

@@ -1,5 +1,4 @@
#include "../../lv_examples.h"
#include <stdio.h>
#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_style.c
CSRCS += lv_obj_tree.c
CSRCS += lv_event.c
CSRCS += lv_refr.c
CSRCS += lv_theme.c

View File

@@ -6,7 +6,6 @@
/*********************
* INCLUDES
*********************/
#include <stdio.h>
#include <stdbool.h>
#include "lv_draw_mask.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);
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)

View File

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

View File

@@ -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);
}
}

View File

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

View File

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