This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.20-376-gd22ce01


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  d22ce01becae90db0c65c82fd2e1aa7898df7ce6 (commit)
       via  eca2772b9a2b057a1af6604afb9b5d3ce3448497 (commit)
      from  bdf079da369ad5685c0432b2f41a5aaf1ec990e7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d22ce01becae90db0c65c82fd2e1aa7898df7ce6

commit d22ce01becae90db0c65c82fd2e1aa7898df7ce6
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
Date:   Wed Dec 17 16:43:34 2014 +0100

    Get rid of format warning in bug-vfprintf-nargs.c.

diff --git a/ChangeLog b/ChangeLog
index 1a79665..276e613 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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>
+
 	* libio/tst-widetext.c (do_test):
 	Use format type %td instead of %Zd for ptrdiff_t
 	in order to avoid format warning.
diff --git a/stdio-common/bug-vfprintf-nargs.c b/stdio-common/bug-vfprintf-nargs.c
index c7e7f0b..7534967 100644
--- a/stdio-common/bug-vfprintf-nargs.c
+++ b/stdio-common/bug-vfprintf-nargs.c
@@ -65,7 +65,8 @@ do_test (void)
      test this on 32-bit systems.  */
   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)
         rc = 1;
     }

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=eca2772b9a2b057a1af6604afb9b5d3ce3448497

commit eca2772b9a2b057a1af6604afb9b5d3ce3448497
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
Date:   Wed Dec 17 16:42:51 2014 +0100

    Get rid of format warning in tst-widetext.c.

diff --git a/ChangeLog b/ChangeLog
index 61bbbc9..1a79665 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
+
+	* libio/tst-widetext.c (do_test):
+	Use format type %td instead of %Zd for ptrdiff_t
+	in order to avoid format warning.
+
 2014-12-17  Andreas Schwab  <schwab@suse.de>
 
 	* nscd/mem.c (gc): Add size_t cast to match printf format.
diff --git a/libio/tst-widetext.c b/libio/tst-widetext.c
index acab72b..83345d7 100644
--- a/libio/tst-widetext.c
+++ b/libio/tst-widetext.c
@@ -291,7 +291,7 @@ do_test (void)
     {
       if (fgetws (wcp, &wc2buf[wcsize] - wcp + 1, fp) == NULL)
 	{
-	  printf ("%u: short read using fgetws (only %Zd of %Zd)\n",
+	  printf ("%u: short read using fgetws (only %td of %Zd)\n",
 		  __LINE__, wcp - wc2buf, wcsize);
 	  status = 1;
 	  break;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                         |   12 ++++++++++++
 libio/tst-widetext.c              |    2 +-
 stdio-common/bug-vfprintf-nargs.c |    3 ++-
 3 files changed, 15 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]