- UID
- 2840
- 麦力
- 128
- 注册时间
- 2017-2-12
- 最后登录
- 2017-5-8
- 精华
- 0
- 阅读权限
- 20
- 在线时间
- 8 小时
|
本帖最后由 youjj2017 于 2017-2-12 02:26 编辑
在Visual mwatch里打开现成的代码,再点模拟,左面的框里却出现了红字,还在论坛中下了其它现成的,放到里面,点模拟,都有红字,虽然红字的部分不完全一样。请问有人知道是怎么回事吗?非常感谢!
第一段,在中间
第二段,在最后
放大看,第一段
In file included from watcheface_show_morebosss_m01.c:6:0:
maibu_res.h:3:0: warning: "RES_BITMAP_WATCHFACE_WEATHER_BG" redefined [enabled by default]
In file included from .\SDK/maibu_sdk.h:120:0,
from watcheface_show_morebosss_m01.c:5:
.\SDK/maibu_res_bitmap_base_sdk.h:76:0: note: this is the location of the previous definition
watcheface_show_morebosss_m01.c: In function 'window_reloading':
watcheface_show_morebosss_m01.c:138:26: warning: initialization makes pointer from integer without a cast [enabled by default]
watcheface_show_morebosss_m01.c: In function 'sec_callback':
watcheface_show_morebosss_m01.c:183:26: warning: initialization makes pointer from integer without a cast [enabled by default]
watcheface_show_morebosss_m01.c: In function 'data_handler_per_minute':
watcheface_show_morebosss_m01.c:336:2: warning: passing argument 2 of 'strcat' from incompatible pointer type [enabled by default]
In file included from watcheface_show_morebosss_m01.c:3:0:
c:\program files (x86)\gnu tools arm embedded\4.7 2014q2\bin\../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/include/string.h:27:8: note: expected 'const char *' but argument is of type 'char (*)[2]'
第二段
D:\VisualMWatch_W64\watcheface_show_morebosss_m01.c: In function 'data_handler_per_minute':
D:\VisualMWatch_W64\watcheface_show_morebosss_m01.c:336: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\watcheface_show_morebosss_m01.c:3:0:
D:/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);
|
|