From d88548f497e52ad7633db1f3243daef0ba9fe54b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 27 Nov 2014 03:25:15 +0000 Subject: Fix stdio-common/tst-fmemopen.c format warnings. Testing for 32-bit x86 shows up warnings in stdio-common/tst-fmemopen.c where off_t values are passed to %zu printf formats. Since the values are in messages relating to function calls where the relevant argument is of type size_t, it seems most appropriate to cast explicitly to size_t when passing to printf, which this patch does. Tested for 32-bit x86. * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to size_t for %zu format. --- ChangeLog | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index c9b49ca290..ab2220d9ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-11-27 Joseph Myers + * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to + size_t for %zu format. + * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer difference, not %ju. -- cgit 1.4.1