|
|
00db10 |
commit ab9f6255ab4e7aa353ec1b61b4f332bf00cea4d0
|
|
|
00db10 |
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
|
|
|
00db10 |
Date: Wed Jan 20 08:32:37 2016 +0100
|
|
|
00db10 |
|
|
|
00db10 |
S390: Fix build error in iconvdata/bug-iconv11.c.
|
|
|
00db10 |
|
|
|
00db10 |
This fixes the following build error on S390 31bit while building the test
|
|
|
00db10 |
iconvdata/bug-iconv11.c with gcc 5.3:
|
|
|
00db10 |
bug-iconv11.c: In function ‘test_ibm93x’:
|
|
|
00db10 |
bug-iconv11.c:59:11: error: format ‘%td’ expects argument of type ‘ptrdiff_t’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Werror=format=]
|
|
|
00db10 |
printf (" ==> %td: %s\n"
|
|
|
00db10 |
^
|
|
|
00db10 |
cc1: all warnings being treated as errors
|
|
|
00db10 |
|
|
|
00db10 |
This patch uses %zu format specifier for argument size_t ret instead of %td.
|
|
|
00db10 |
|
|
|
00db10 |
ChangeLog:
|
|
|
00db10 |
|
|
|
00db10 |
* iconvdata/bug-iconv11.c (test_ibm93x):
|
|
|
00db10 |
Use %zu printf format specifier for size_t argument.
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/iconvdata/bug-iconv11.c b/iconvdata/bug-iconv11.c
|
|
|
00db10 |
index 6cdc07d79883454d..5b9d9a36af0b4bcf 100644
|
|
|
00db10 |
--- a/iconvdata/bug-iconv11.c
|
|
|
00db10 |
+++ b/iconvdata/bug-iconv11.c
|
|
|
00db10 |
@@ -56,7 +56,7 @@ test_ibm93x (const char *from_set, const char *input, size_t inbytesleft)
|
|
|
00db10 |
|
|
|
00db10 |
errno = 0;
|
|
|
00db10 |
size_t ret = iconv (cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
|
|
|
00db10 |
- printf (" ==> %td: %s\n"
|
|
|
00db10 |
+ printf (" ==> %zu: %s\n"
|
|
|
00db10 |
" inbuf%+td, inbytesleft=%zu, outbuf%+td, outbytesleft=%zu\n",
|
|
|
00db10 |
ret, strerror (errno),
|
|
|
00db10 |
inbuf - input, inbytesleft, outbuf - output, outbytesleft);
|