On 12/03/2017 04:55 PM, Martin Sebor wrote:
> It was suggested to me that it might be helpful to mention
> attribute nonstring as a solution to -Wstringop-truncation
> warnings. I think it's a good idea to add a reference to
> the attribute to the manual. The attached patch does that.
>
> Since the attribute is suitable only under rare conditions
> suggesting it in the text of the diagnostics (e.g., in the
> form of a note) would unlikely be useful (and, if acted on,
> could even lead to other kinds of warnings) so I opted not
> to make such a change.
>
> Martin
>
> wstringop-trunc-nonstring.diff
>
>
> 2017-12-03 Martin Sebor <mse...@redhat.com>
>
> * doc/invoke.texi (-Wstringop-truncation): Mention attribute nonstring.
OK.
jeff