This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, on 31bit s390 i get the following warning/error: gcc bug-vfprintf-nargs.c -c ... bug-vfprintf-nargs.c: In function âdo_testâ:bug-vfprintf-nargs.c:68:7: error: format â%dâ expects argument of type âintâ, but argument 3 has type âlong unsigned intâ [-Werror=format=]
sprintf (buf, "%%1$d %%%" PRIdPTR "$d", UINT32_MAX / sizeof (int));This patch suppresses the format warning with the diagnostic control pragmas.
Thus the behaviour of this testcase isnÂt changed. Ok to commit? Bye Stefan --- 2014-12-12 Stefan Liebler <stli@linux.vnet.ibm.com> * stdio-common/bug-vfprintf-nargs.c (do_test): Disable format warning with diagnostic control pragma.
Attachment:
bug-vfprintf-nargs_12122014
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |