Fix warning from latest GCC in tst-printf.c

* stdio-common/tst-printf.c: Ignore -Wformat-length warning.
This commit is contained in:
Steve Ellcey 2016-11-01 16:00:09 -07:00
parent 6adaeadf95
commit 9032070dea
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2016-11-01 Steve Ellcey <sellcey@caviumnetworks.com>
* stdio-common/tst-printf.c: Ignore -Wformat-length warning.
2016-11-01 Joseph Myers <joseph@codesourcery.com>
[BZ #19673]

View File

@ -32,6 +32,11 @@
The compiler warnings are not useful here. */
DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat");
#if __GNUC_PREREQ (7, 0)
/* Compiler warnings about format lengths should also be ignored. */
DIAG_IGNORE_NEEDS_COMMENT (7.0, "-Wformat-length");
#endif
static void rfg1 (void);
static void rfg2 (void);
static void rfg3 (void);