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:
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
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.,