Re: [PATCH] move snprintf truncation warnings under own option ()

2017-01-08 Thread Martin Sebor
PR tree-optimization/78913 - Probably misleading error reported by -Wformat-length PR middle-end/77708 - -Wformat-length %s warns for snprintf gcc/c-family/ChangeLog: PR tree-optimization/78913 PR middle-end/77708 * c.opt (-Wformat-truncation): New option. gcc/testsuite/ChangeLog:

Re: [PATCH] move snprintf truncation warnings under own option ()

2017-01-06 Thread Jeff Law
On 01/03/2017 05:04 PM, Martin Sebor wrote: The -Wformat-length option warns about both overflow and truncation. I had initially debated introducing two options, one for each of the two kinds of problems, but decided to go with just one and consider breaking it up based on feedback. I feel that

[PATCH] move snprintf truncation warnings under own option ()

2017-01-03 Thread Martin Sebor
The -Wformat-length option warns about both overflow and truncation. I had initially debated introducing two options, one for each of the two kinds of problems, but decided to go with just one and consider breaking it up based on feedback. I feel that there has now been sufficient feedback (e.g.,