返回官网官方微博

麦步社区-论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: MAI 表盘
查看: 3149|回复: 3
打印 上一主题 下一主题

现成的代码模拟看下,怎么有红字呢?

[复制链接]

4

主题

8

帖子

128

麦力

精华
0
阅读权限
20
在线时间
8 小时

跳转到指定楼层
楼主
发表于 2017-2-12 02:23:41 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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);


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信 WeiboWeibo
收藏收藏1 分享分享 顶 踩

214

主题

2514

帖子

3万

麦力

麦步团队

精华
1
阅读权限
200
在线时间
812 小时

麦步手表用户麦步工业测评协会

沙发
发表于 2017-2-14 10:39:11 | 只看该作者
能都正常模拟出来?
没有报error的话就是正常的,红色字可以忽略

点评

嗯嗯嗯,谢谢谢谢!  发表于 2017-2-20 23:56

23

主题

1532

帖子

9071

麦力

精华
0
阅读权限
80
在线时间
103 小时

板凳
发表于 2017-2-27 00:14:59 | 只看该作者
学习了..
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|麦步官方论坛 ( 粤ICP备12052190号  

GMT+8, 2024-5-3 00:42 , Processed in 0.089733 second(s), 28 queries .

Powered by Discuz! X3.2

© 2012-2021 Comsenz Inc.

快速回复 返回顶部 返回列表