This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Warning C275

Hi
How can i do this whitout any warning.

char	*p2;

p2 = strstr(rx_buf, "text/html");
*(p2++); //SENDTOSERVER.C(136): warning C275: expression with possibly no effect

Parents
  • Ingvar,

    I understand what you're doing. And I understand that you're trying to increment a pointer. Unless you're trying to increment the value stored AT the pointer location, however, the "*" symbol should not be involved. Again, just change

    *(p2++);

    to

    p2++;

    and your pointer will be incremented and the error will go away.

Reply
  • Ingvar,

    I understand what you're doing. And I understand that you're trying to increment a pointer. Unless you're trying to increment the value stored AT the pointer location, however, the "*" symbol should not be involved. Again, just change

    *(p2++);

    to

    p2++;

    and your pointer will be incremented and the error will go away.

Children
No data