Re: [PATCH] accept attribute nonstring on all narrow characters (PR 84725)

2018-03-13 Thread Martin Sebor
On 03/12/2018 05:13 PM, Jeff Law wrote: On 03/05/2018 01:54 PM, Martin Sebor wrote: Attribute nonstring is currently only allowed on arrays and pointers to plain char, but -Wstringop-truncation triggers even for strncpy calls whose arguments are arrays of signed or unsigned char (with or

Re: [PATCH] accept attribute nonstring on all narrow characters (PR 84725)

2018-03-12 Thread Jeff Law
On 03/05/2018 01:54 PM, Martin Sebor wrote: > Attribute nonstring is currently only allowed on arrays and > pointers to plain char, but -Wstringop-truncation triggers > even for strncpy calls whose arguments are arrays of signed > or unsigned char (with or without a cast to char*). > > To help