PR35503 - warn for restrict pointer
Joseph Myers
joseph@codesourcery.com
Tue Sep 20 14:34:00 GMT 2016
On Tue, 20 Sep 2016, Martin Sebor wrote:
> > That's much harder to support in format checking (which expects one length
> > modifier, not a combination like that).
>
> I haven't looked into it detail but since the format checker supports
> one-to-two character sequences of length modifiers (h or hh, etc) it
> should be possible to extend it to handle one-to-three character
> sequences (h, hV, or hhV, etc.) The V character would not be a new
> length modifier on its own but instead be recognized as part of
> a longer length modifier sequence. Do you see a problem with that?
You could arrange for length modifiers to have extra variants like that
(at present they have single and double variants listed), but it's clearly
more complicated than a modifier that's used on its own.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list