mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 05:26:18 +08:00
fix warnings
This commit is contained in:
@@ -8,7 +8,7 @@ static void draw_event_cb(lv_event_t * e)
|
||||
|
||||
if(dsc->id == LV_CHART_AXIS_PRIMARY_X && dsc->text) {
|
||||
const char * month[] = {"Jan", "Febr", "March", "Apr", "May", "Jun", "July", "Aug", "Sept", "Oct", "Nov", "Dec"};
|
||||
dsc->text = month[dsc->value];
|
||||
lv_snprintf(dsc->text, dsc->text_length, month[dsc->value]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2552,6 +2552,8 @@ unsigned char* lodepng_chunk_find(unsigned char* chunk, unsigned char* end, cons
|
||||
if(lodepng_chunk_type_equals(chunk, type)) return chunk;
|
||||
chunk = lodepng_chunk_next(chunk, end);
|
||||
}
|
||||
|
||||
return 0; /*Shouldn't reach this*/
|
||||
}
|
||||
|
||||
const unsigned char* lodepng_chunk_find_const(const unsigned char* chunk, const unsigned char* end, const char type[5]) {
|
||||
@@ -2560,6 +2562,8 @@ const unsigned char* lodepng_chunk_find_const(const unsigned char* chunk, const
|
||||
if(lodepng_chunk_type_equals(chunk, type)) return chunk;
|
||||
chunk = lodepng_chunk_next_const(chunk, end);
|
||||
}
|
||||
|
||||
return 0; /*Shouldn't reach this*/
|
||||
}
|
||||
|
||||
unsigned lodepng_chunk_append(unsigned char** out, size_t* outsize, const unsigned char* chunk) {
|
||||
|
||||
Reference in New Issue
Block a user