I have a program which declares an array of strings like this:
char *colors[4] = {\"red\", \"orange\", \"yellow\", \"blue\"};
But I get the
"red", "orange", "yellow", "blue"
these are constant string. Creating a non-const pointer to a constant string is wrong, hence the warning. At the moment you are getting a warning, but it should be an error since it is deprecated in c++03, and forbiden in c++11.