指针赋值 warning: assignment from incompatible pointer type,该怎么解决
指针赋值 warning: assignment from incompatible pointer type很简单的问题char c[2]short* s (short*
指针赋值 warning: assignment from incompatible pointer type
很简单的问题
char c[2];
short* s = (short*)&c[0];
试了好多办法都没法消除这个warning,难道除了忽略,没有办法吗?
[解决办法]VC6和VS2010都编译通过无警告错误。
[解决办法]可以忽视掉!没有关系!