This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33588] gcc warns of (char*) conversion on client-side varargs funcs
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2007 23:20:35 -0000
- Subject: [Bug c++/33588] gcc warns of (char*) conversion on client-side varargs funcs
- References: <bug-33588-12951@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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