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,

    Why are you dereferencing the pointer? It's complaining that you're telling it to get the value at that pointers address and then promptly throwing it away. Just get rid of the * and leave it as p2++; and it will stop complaining.

Reply
  • Ingvar,

    Why are you dereferencing the pointer? It's complaining that you're telling it to get the value at that pointers address and then promptly throwing it away. Just get rid of the * and leave it as p2++; and it will stop complaining.

Children