This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add support for scanf ("%ms", ...) etc. for -Wformat
On Mon, 17 Sep 2007, Jakub Jelinek wrote:
> Updated patch below. Besides the requested changes I have also
> moved the 'a' kludge before length modifiers. The reason for that is
> that glibc handles %las as %la followed by letter s rather than
> %aS (there is just one switch which handles both the length modifiers
> and 'a' flag and it is not in a loop), similarly %la[ab] is %la
> followed by string [ab].
>
> Ok for trunk?
You need to add the new alloc_char initializer to 0 in config/sol2-c.c as
well. OK with that change.
--
Joseph S. Myers
joseph@codesourcery.com