diff options
author | Steve Ellcey <sellcey@caviumnetworks.com> | 2016-11-01 16:00:09 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-06-30 09:43:17 -0700 |
commit | 1b2acbfc1f457f745a9ea910602ee3e5fa2f6e91 (patch) | |
tree | 4fb2a4f7ac3592ea1dfaee5b30bf56d214060600 | |
parent | d248276e69af21c9729d8df6c920a984efccc6ae (diff) | |
download | glibc-1b2acbfc1f457f745a9ea910602ee3e5fa2f6e91.tar.gz glibc-1b2acbfc1f457f745a9ea910602ee3e5fa2f6e91.tar.xz glibc-1b2acbfc1f457f745a9ea910602ee3e5fa2f6e91.zip |
Fix warning from latest GCC in tst-printf.c
* stdio-common/tst-printf.c: Ignore -Wformat-length warning. (cherry picked from commit 9032070deaa03431921315f973c548c2c403fecc)
-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 2896b18ecd..ffe7ac7753 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); |