[Bug c++/33588] gcc warns of (char*) conversion on client-side varargs funcs
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 13 23:20:00 GMT 2007
------- Comment #5 from manu at gcc dot gnu dot org 2007-11-13 23:20 -------
Stephan, please, try with
my_func( "format string: %s", (char *)__FILE__ )
Otherwise, you can use -Wno-write-strings to avoid the warning or
-Wno-error=write-strings to get the warning as a warning even when using
-Werror.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33588
More information about the Gcc-bugs
mailing list