This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to add %' into gfc_fatal_error
- From: Martin Sebor <msebor at gmail dot com>
- To: Martin Liška <mliska at suse dot cz>, GCC Development <gcc at gcc dot gnu dot org>
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Mon, 11 Mar 2019 09:55:27 -0600
- Subject: Re: How to add %' into gfc_fatal_error
- References: <aaf5a50d-b311-8fe6-c6ed-c26d432c9df5@suse.cz>
On 3/11/19 8:18 AM, Martin Liška wrote:
Hi.
I would like to add %' into __gcc_gfc__ in order to handle:
./xgcc -B. /tmp/module.ii -Wformat -c
/home/marxin/Programming/gcc/gcc/fortran/module.c: In function ‘void dump_module(const char*, int)’:
/home/marxin/Programming/gcc/gcc/fortran/module.c:6205:19: warning: unknown conversion type character ‘'’ in format [-Wformat=]
6205 | gfc_fatal_error ("Can%'t delete module file %qs: %s", filename,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Can you please help me how to do that?
gfc_fatal_error ("Cannot delete module file %qs: %s", filename,
;-)
Seriously, I would avoid contractions in diagnostics, especially
"can't."
Martin