diff options
author | Steve Ellcey <sellcey@caviumnetworks.com> | 2016-11-01 16:00:09 -0700 |
---|---|---|
committer | Steve Ellcey <sellcey@caviumnetworks.com> | 2016-11-01 16:00:09 -0700 |
commit | 9032070deaa03431921315f973c548c2c403fecc (patch) | |
tree | 808c04fd9e2ab25f6eb7c7b836c8d60eddccf68a /stdio-common | |
parent | 6adaeadf95fa5cc68e92b07456bb82dbd85afd06 (diff) | |
download | glibc-9032070deaa03431921315f973c548c2c403fecc.zip glibc-9032070deaa03431921315f973c548c2c403fecc.tar.gz glibc-9032070deaa03431921315f973c548c2c403fecc.tar.bz2 |
Fix warning from latest GCC in tst-printf.c
* stdio-common/tst-printf.c: Ignore -Wformat-length warning.
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tst-printf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stdio-common/tst-printf.c b/stdio-common/tst-printf.c index 2896b18..ffe7ac7 100644 --- a/stdio-common/tst-printf.c +++ b/stdio-common/tst-printf.c @@ -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); |