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
  • OK i didnt give you all code.

    The reason is the string i search.
    The string look like this

    text/html
    :1000000002005DC1FE42000020000074072527F5B4
    :020010002722A5
    :100013008017111D7F0D111D7F0A3099FDC2998F25

    at the first search i find "text/html"
    next search is
    ":"
    when i found ":" i will increment the pointer so it points to
    "1000000002005DC1FE42000020000074072527F5B4"

Reply
  • OK i didnt give you all code.

    The reason is the string i search.
    The string look like this

    text/html
    :1000000002005DC1FE42000020000074072527F5B4
    :020010002722A5
    :100013008017111D7F0D111D7F0A3099FDC2998F25

    at the first search i find "text/html"
    next search is
    ":"
    when i found ":" i will increment the pointer so it points to
    "1000000002005DC1FE42000020000074072527F5B4"

Children