mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-06 11:41:02 +03:00
Get rid of format warning in bug-vfprintf-nargs.c.
This commit is contained in:
parent
eca2772b9a
commit
d22ce01bec
@ -1,3 +1,9 @@
|
|||||||
|
2014-12-17 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* stdio-common/bug-vfprintf-nargs.c (do_test):
|
||||||
|
Cast value to intptr_t to avoid format warning
|
||||||
|
for usage with PRIdPTR printing macro.
|
||||||
|
|
||||||
2014-12-17 Stefan Liebler <stli@linux.vnet.ibm.com>
|
2014-12-17 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* libio/tst-widetext.c (do_test):
|
* libio/tst-widetext.c (do_test):
|
||||||
|
@ -65,7 +65,8 @@ do_test (void)
|
|||||||
test this on 32-bit systems. */
|
test this on 32-bit systems. */
|
||||||
if (sizeof (long int) == 4)
|
if (sizeof (long int) == 4)
|
||||||
{
|
{
|
||||||
sprintf (buf, "%%1$d %%%" PRIdPTR "$d", UINT32_MAX / sizeof (int));
|
sprintf (buf, "%%1$d %%%" PRIdPTR "$d",
|
||||||
|
(intptr_t) (UINT32_MAX / sizeof (int)));
|
||||||
if (format_failed (buf, "1 %$d") != 0)
|
if (format_failed (buf, "1 %$d") != 0)
|
||||||
rc = 1;
|
rc = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user