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