aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/test-vfprintf.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-12-11 13:46:21 -0800
committerRoland McGrath <roland@hack.frob.com>2014-12-11 13:47:44 -0800
commit1c4053db63e2a3470ed8ace2ddd9636f9a6e135c (patch)
tree9ea23fa846a90b210e9d9447f08f390153f4132b /stdio-common/test-vfprintf.c
parenta1edbf3cb8095699794d6601446c0f18cfa265a8 (diff)
downloadglibc-1c4053db63e2a3470ed8ace2ddd9636f9a6e135c.tar
glibc-1c4053db63e2a3470ed8ace2ddd9636f9a6e135c.tar.gz
glibc-1c4053db63e2a3470ed8ace2ddd9636f9a6e135c.tar.bz2
glibc-1c4053db63e2a3470ed8ace2ddd9636f9a6e135c.zip
Eliminate -Wno-format from printf/scanf tests.
Diffstat (limited to 'stdio-common/test-vfprintf.c')
-rw-r--r--stdio-common/test-vfprintf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stdio-common/test-vfprintf.c b/stdio-common/test-vfprintf.c
index 9cc56d7dcb..8483d8d885 100644
--- a/stdio-common/test-vfprintf.c
+++ b/stdio-common/test-vfprintf.c
@@ -92,7 +92,13 @@ do_test (void)
fprintf (fp, "%s", large);
fprintf (fp, "%.*s", 30000, large);
large[20000] = '\0';
+ /* We're testing a large format string here and need to generate it
+ to avoid this source file being ridiculous. So disable the warning
+ about a generated format string. */
+ DIAG_PUSH_NEEDS_COMMENT;
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat-security");
fprintf (fp, large);
+ DIAG_POP_NEEDS_COMMENT;
fprintf (fp, "%-1.300000000s", "hello");
if (fflush (fp) != 0 || ferror (fp) != 0 || fclose (fp) != 0)