warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]

very simple code does warn me. Some hints are not constructive. Warning is:

ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]

I tried:

char const *q = "pin";
char const *r = "\n\r";
{
while(client.findUntil(*q, *r)) 

without success

Origin code:

while(client.findUntil("pin", "\n\r"))

Leave a Comment