fix warnings

This commit is contained in:
lixianjing 2021-07-13 07:29:59 +08:00
parent 9868dec627
commit e7a512f304
4 changed files with 10 additions and 17 deletions

View File

@ -1,5 +1,8 @@
# 最新动态
2021/07/13
* 修改编译警告(感谢智明提供补丁)
2021/07/12
* 完善文档。
* 优化 layout。

View File

@ -80,7 +80,7 @@ static inline ret_t lcd_mem_set_wait_vbi(lcd_t* lcd, lcd_mem_wait_vbi_t wait_vbi
*
* @return {ret_t} RET_OK表示成功
*/
static ret_t lcd_mem_deinit(lcd_mem_t* mem) {
static inline ret_t lcd_mem_deinit(lcd_mem_t* mem) {
return_value_if_fail(mem != NULL && mem->base.begin_frame != NULL, RET_BAD_PARAMS);
if (mem->vgcanvas != NULL) {
@ -107,7 +107,7 @@ static ret_t lcd_mem_deinit(lcd_mem_t* mem) {
*
* @return {ret_t} RET_OK表示成功
*/
static ret_t lcd_mem_set_offline_fb(lcd_mem_t* lcd, uint8_t* offline_fb) {
static inline ret_t lcd_mem_set_offline_fb(lcd_mem_t* lcd, uint8_t* offline_fb) {
return_value_if_fail(lcd != NULL, RET_BAD_PARAMS);
lcd->offline_fb = offline_fb;
return RET_OK;
@ -121,7 +121,7 @@ static ret_t lcd_mem_set_offline_fb(lcd_mem_t* lcd, uint8_t* offline_fb) {
*
* @return {uint8_t*} offline_fb
*/
static uint8_t* lcd_mem_get_offline_fb(lcd_mem_t* lcd) {
static inline uint8_t* lcd_mem_get_offline_fb(lcd_mem_t* lcd) {
return_value_if_fail(lcd != NULL, NULL);
return lcd->offline_fb;
}
@ -135,7 +135,7 @@ static uint8_t* lcd_mem_get_offline_fb(lcd_mem_t* lcd) {
*
* @return {ret_t} RET_OK表示成功
*/
static ret_t lcd_mem_set_online_fb(lcd_mem_t* lcd, uint8_t* online_fb) {
static inline ret_t lcd_mem_set_online_fb(lcd_mem_t* lcd, uint8_t* online_fb) {
return_value_if_fail(lcd != NULL, RET_BAD_PARAMS);
lcd->online_fb = online_fb;
return RET_OK;
@ -149,7 +149,7 @@ static ret_t lcd_mem_set_online_fb(lcd_mem_t* lcd, uint8_t* online_fb) {
*
* @return {uint8_t*} online_fb
*/
static uint8_t* lcd_mem_get_online_fb(lcd_mem_t* lcd) {
static inline uint8_t* lcd_mem_get_online_fb(lcd_mem_t* lcd) {
return_value_if_fail(lcd != NULL, NULL);
return lcd->online_fb;
}
@ -163,7 +163,7 @@ static uint8_t* lcd_mem_get_online_fb(lcd_mem_t* lcd) {
*
* @return {ret_t} RET_OK表示成功
*/
static ret_t lcd_mem_set_next_fb(lcd_mem_t* lcd, uint8_t* next_fb) {
static inline ret_t lcd_mem_set_next_fb(lcd_mem_t* lcd, uint8_t* next_fb) {
return_value_if_fail(lcd != NULL, RET_BAD_PARAMS);
lcd->next_fb = next_fb;
return RET_OK;
@ -177,7 +177,7 @@ static ret_t lcd_mem_set_next_fb(lcd_mem_t* lcd, uint8_t* next_fb) {
*
* @return {uint8_t*} next_fb
*/
static uint8_t* lcd_mem_get_next_fb(lcd_mem_t* lcd) {
static inline uint8_t* lcd_mem_get_next_fb(lcd_mem_t* lcd) {
return_value_if_fail(lcd != NULL, NULL);
return lcd->next_fb;
}

View File

@ -93,11 +93,6 @@ static ret_t vgcanvas_nanovg_unbind_fbo(vgcanvas_t* vgcanvas, framebuffer_object
return RET_OK;
}
static ret_t vgcanvas_nanovg_fbo_to_imageData(vgcanvas_t* vgcanvas, framebuffer_object_t* fbo,
bitmap_t* img, const rect_t* r) {
return RET_NOT_IMPL;
}
static ret_t vgcanvas_nanovg_destroy(vgcanvas_t* vgcanvas) {
NVGcontext* vg = ((vgcanvas_nanovg_t*)vgcanvas)->vg;

View File

@ -61,11 +61,6 @@ static ret_t vgcanvas_nanovg_bind_fbo(vgcanvas_t* vgcanvas, framebuffer_object_t
return RET_NOT_IMPL;
}
static ret_t vgcanvas_nanovg_fbo_to_imageData(vgcanvas_t* vgcanvas, framebuffer_object_t* fbo,
bitmap_t* img, const rect_t* r) {
return RET_NOT_IMPL;
}
static ret_t vgcanvas_nanovg_unbind_fbo(vgcanvas_t* vgcanvas, framebuffer_object_t* fbo) {
return RET_NOT_IMPL;
}