- UID
- 1311
- 麦力
- 1787
- 注册时间
- 2016-8-22
- 最后登录
- 2017-8-17
- 精华
- 0
- 阅读权限
- 50
- 在线时间
- 42 小时
|
把缤纷多显程序三个文件原封不动的考进去,编译都通不过,错误如下:
D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c: In function 'init_window':
D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c:309:72: warning: passing argument 5 of 'display_target_layerText' from incompatible pointer type
display_target_layerText(p_window,&temp_frame,GAlignRight,GColorWhite,&g_show_more_str_battery_percent,U_ASCII_ARIAL_12);
^
D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c:263:9: note: expected 'char *' but argument is of type 'char (*)[4]'
int32_t display_target_layerText(P_Window p_window,GRect *temp_p_frame,enum GAlign how_to_align,enum GColor color,char * str,uint8_t font_type)
^
D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c: In function 'data_handler_per_minute':
D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c:419:34: warning: passing argument 2 of 'strcat' from incompatible pointer type
strcat(g_show_more_str_altitude,&MMM);
^
In file included from D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c:3:0:
D:/VisualMWatch_W64_v14/VisualMWatch_W64/mbcc/x86_64-w64-mingw32/include/string.h:52:18: note: expected 'const char * __restrict__' but argument is of type 'char (*)[2]'
char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);
^
D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c: In function 'main':
D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c:675:37: warning: passing argument 1 of 'maibu_comm_register_phone_callback' from incompatible pointer type
maibu_comm_register_phone_callback(get_city_info_callback);
^
In file included from .\mbcc\include/maibu_sdk.h:23:0,
from D:\VisualMWatch_W64_v14\VisualMWatch_W64\watcheface_show_more.c:5:
.\mbcc\include/os_comm.h:306:6: note: expected 'CBCommPhone' but argument is of type 'void (*)(enum ERequestPhone, void *)'
void maibu_comm_register_phone_callback(CBCommPhone phone_callback);
^
|
|