NIOS II- Eclipse -怎样消除pointer targets in passing argument n of 'func_xxx' differ in signedness警

警告

当我编译上边的代码时,Nios II SBTE就会报出如下的警告。告知我第3个参数类型不匹配。

1

pointer targets in passing argument 3 of 'ili_PutString' differ in signedness

其中ili_PutString的函数原型如下:

1

void ili_PutString(u16 x, u16 y, u8 *s, u32 fColor, u32 bColor);

无奈,干脆强制转换类型。

消除警告

警告成功消除。

文章参考:

http://www.cnblogs.com/yuphone/archive/2010/11/26/1888286.html [笔记].怎样消除pointer targets in passing argument n of 'func_xxx' differ in signedness警告

猜你喜欢

转载自blog.csdn.net/qq_25144391/article/details/89549126
今日推荐