keil环境下GUI.C(213):warning C275:expression with possibly no effect 这是是怎么回事?源码如下:void cursorcov(unsigned char **stylen,unsigned char n){\x05unsigned char i,j;\x05stylecursorb=calloc(n,(32*(sizeof(unsigned char))));\x05for(

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 04:27:49

keil环境下GUI.C(213):warning C275:expression with possibly no effect 这是是怎么回事?源码如下:void cursorcov(unsigned char **stylen,unsigned char n){\x05unsigned char i,j;\x05stylecursorb=calloc(n,(32*(sizeof(unsigned char))));\x05for(
keil环境下GUI.C(213):warning C275:expression with possibly no effect 这是是怎么回事?
源码如下:
void cursorcov(unsigned char **stylen,unsigned char n)
{
\x05unsigned char i,j;
\x05stylecursorb=calloc(n,(32*(sizeof(unsigned char))));
\x05for(i=0;i

keil环境下GUI.C(213):warning C275:expression with possibly no effect 这是是怎么回事?源码如下:void cursorcov(unsigned char **stylen,unsigned char n){\x05unsigned char i,j;\x05stylecursorb=calloc(n,(32*(sizeof(unsigned char))));\x05for(
==号不是=号,没有任何赋值操作.
编译器按照你打的==告诉你,这个语句是多余的,有它和没它运行结果完全相同,有它是徒增计算量.