I have some legacy code built with c++ compiler giving the error in the subject line
typedef struct foo {
char const * const str;
} Foo;
and a lot of places in the code (meaning I cannot change all of them) use it in a C style initialization:
Foo arr[] ={
{"death"},
{"turture"},
{"kill"}
}
What is the good workaround to remove the stupid warning?