How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?
So I’m working on an exceedingly large codebase, and recently upgraded to gcc 4.3, which now triggers this warning: warning: deprecated conversion from string constant to ‘char*’ Obviously, the correct way to fix this is to find every declaration like char *s = “constant string”; or function call like: void foo(char *s); foo(“constant string”); and … Read more