PIC16F883,MPLAB X IDE在调用该函数是,编译出现警告,我想搞明白是为什么?求助大神啊,新人求指点
unsigned char Check_Cmd(unsigned char *Ack,unsigned int Waittime)
{
char *Strx= NULL;
unsigned char i;
unsigned int Acklen;
CommRecBufferTail2=0;
for(i=0;i<10;i++)
receive_cmd[i]=0;
if(Waittime) //ÐèÒªµÈ´ýÓ¦´ð
{
while(--Waittime) //µÈ´ýµ¹¼Æʱ
{
Delay_100us(1);
Acklen=strlen(Ack);
if(CommRecBufferTail2>=Acklen)
{
Strx=strstr((const char*)receive_cmd,(unsigned char*)Ack);
if(Strx)
{
break;
}
}
}
}
return (unsigned char*)Strx;
}
wifi.c:176: warning: (358) illegal conversion of pointer to integer
wifi.c:190: warning: (361) function declared implicit int
wifi.c:201: warning: (359) illegal conversion between pointer types
pointer to const unsigned char -> pointer to unsigned char
wifi.c:210: warning: (359) illegal conversion between pointer types
pointer to const unsigned char -> pointer to unsigned char
wifi.c:226: warning: (359) illegal conversion between pointer types |