1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

Eliminate -Wno-format from printf/scanf tests.

This commit is contained in:
Roland McGrath
2014-12-11 13:46:21 -08:00
parent a1edbf3cb8
commit 1c4053db63
9 changed files with 80 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <libc-internal.h>
int
main (int argc, char *argv[])
@@ -14,7 +15,16 @@ main (int argc, char *argv[])
abort ();
n = -2;
/* We are testing a corner case of the scanf format string here. */
DIAG_PUSH_NEEDS_COMMENT;
DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat");
DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat-extra-args");
ret = sscanf ("1000", "%llld", &n);
DIAG_POP_NEEDS_COMMENT;
printf ("%%llld: ret: %d, n: %Ld\n", ret, n);
if (ret > 0 || n >= 0L)
abort ();