This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33588] gcc warns of (char*) conversion on client-side varargs funcs



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]