[笔记].怎样消除pointer targets in passing argument n of 'func_xxx' differ in signedness警告

警告

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

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

其中ili_PutString的函数原型如下:

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

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

消除警告

哈哈,警告成功消除。

这究竟是为什么呢?字符串类型难道不等同于char类型的指针?求高人指点。

 安德鲁® / CC BY 2.5     FPGA Run!
原文地址:https://www.cnblogs.com/yuphone/p/1888286.html