mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Eliminate -Wno-format from printf/scanf tests.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user