[Bug c/50645] old issue - deprecated conversion from string to char*
mike.c at rocketime dot com
gcc-bugzilla@gcc.gnu.org
Fri Oct 7 00:35:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50645
--- Comment #1 from mike.c at rocketime dot com 2011-10-07 00:35:20 UTC ---
The quick fix:
#pragma GCC diagnostic ignored "-Wwrite-strings"
... of course eliminates the warnings -- but logically, you DO WANT A WARNING
when you should be declaring
const char* (and you forget const)
but LOGICALLY you don't want I warning when passing a string literal to a char*
parameter in a function.
More information about the Gcc-bugs
mailing list