aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-11 13:41:47 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-07-11 13:45:33 -0700
commit70249b57e1e5f8252948fd0ab46773ad20216e23 (patch)
tree4d2d86597414763e3bd3a507f76f5977e16e887a /ChangeLog
parent398a80fec83a41d9f8d16bc3943b9179017a3ee1 (diff)
downloadglibc-70249b57e1e5f8252948fd0ab46773ad20216e23.tar
glibc-70249b57e1e5f8252948fd0ab46773ad20216e23.tar.gz
glibc-70249b57e1e5f8252948fd0ab46773ad20216e23.tar.bz2
glibc-70249b57e1e5f8252948fd0ab46773ad20216e23.zip
Replace %ld with %jd and cast to intmax_t
On x32, GCC 5.1 complains: tst-fmemopen2.c: In function ‘do_test_without_buffer’: tst-fmemopen2.c:124:15: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘off_t {aka long long int}’ [-Werror=format=] printf ("FAIL: first ftello returned %ld, expected %zu\n", o, nstr); ^ tst-fmemopen2.c:135:15: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘off_t {aka long long int}’ [-Werror=format=] printf ("FAIL: second ftello returned %ld, expected %zu\n", o, nbuf); ^ tst-fmemopen2.c:148:15: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘off_t {aka long long int}’ [-Werror=format=] printf ("FAIL: third ftello returned %ld, expected %zu\n", o, nstr2); ^ tst-fmemopen2.c: In function ‘do_test_length_zero’: tst-fmemopen2.c:183:15: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘off_t {aka long long int}’ [-Werror=format=] printf ("FAIL: first ftello returned %ld, expected 0\n", o); ^ This patch silences GCC. * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace %ld with %jd and cast to intmax_t. (do_test_length_zero): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b6e7a791f9..84f038c893 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
+ %ld with %jd and cast to intmax_t.
+ (do_test_length_zero): Likewise.
+
2015-07-10 Roland McGrath <roland@hack.frob.com>
* sysdeps/nacl/pthread_condattr_setclock.c: New file.