Blame SOURCES/glibc-rh1427734-2.patch

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