This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] -Wformat: fix nonsensical "wide character" message (PR c/84258)
On Thu, 2018-02-08 at 17:18 +0000, Joseph Myers wrote:
> On Wed, 7 Feb 2018, David Malcolm wrote:
>
> > gcc/c-family/ChangeLog:
> > PR c/84258
> > * c-format.c (struct format_check_results): Add field
> > "number_non_char".
> > (check_format_info): Initialize it, and warn if encountered.
> > (check_format_arg): Distinguish between wide char and
> > everything else when detecting arrays of non-char.
> >
> > gcc/testsuite/ChangeLog:
> > PR c/84258
> > * c-c++-common/Wformat-pr84258.c: New test.
>
> OK.
Thanks.
Release managers: this isn't a regression, but seems relatively low-
risk.
Is this OK for trunk now, or should I queue this for next stage 1?
Context:
https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00380.html
Dave