diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-12-11 13:46:21 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-12-11 13:47:44 -0800 |
commit | 1c4053db63e2a3470ed8ace2ddd9636f9a6e135c (patch) | |
tree | 9ea23fa846a90b210e9d9447f08f390153f4132b /stdio-common/tst-printfsz.c | |
parent | a1edbf3cb8095699794d6601446c0f18cfa265a8 (diff) | |
download | glibc-1c4053db63e2a3470ed8ace2ddd9636f9a6e135c.tar.gz glibc-1c4053db63e2a3470ed8ace2ddd9636f9a6e135c.tar.xz glibc-1c4053db63e2a3470ed8ace2ddd9636f9a6e135c.zip |
Eliminate -Wno-format from printf/scanf tests.
Diffstat (limited to 'stdio-common/tst-printfsz.c')
-rw-r--r-- | stdio-common/tst-printfsz.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stdio-common/tst-printfsz.c b/stdio-common/tst-printfsz.c index 74d67d2f69..902b2ac27b 100644 --- a/stdio-common/tst-printfsz.c +++ b/stdio-common/tst-printfsz.c @@ -23,6 +23,10 @@ main (int argc, char *argv[]) register_printf_function ('B', printf_size, printf_size_info); DIAG_POP_NEEDS_COMMENT; + /* All of the formats here use the nonstandard extension specifier + just registered, so compiler checking will never grok them. */ + DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat"); + DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat-extra-args"); sprintf (buf, "%g %b %B %.0b %.0B %.1b %.1B %8.0b %08.0B", V, 1025., V, V, V, V, V, V, V, V); |