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.16-ports-merge-745-g09e958e


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  09e958ed423b99f97f5fd4b101964dfc9e3b32c0 (commit)
      from  fac9916c962ffa03350322d616c44f07467850eb (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=09e958ed423b99f97f5fd4b101964dfc9e3b32c0

commit 09e958ed423b99f97f5fd4b101964dfc9e3b32c0
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Nov 21 20:00:52 2012 +0000

    Remove unused variable from sem_post.c.

diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 745accd..7c8736c 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,9 @@
 2012-11-21  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/unix/sysv/linux/sem_post.c (__old_sem_post): Cast result
+	of atomic_increment_val to (void) instead of storing in
+	otherwise-unused variable.
+
 	* pthread_cond_timedwait.c (__pthread_cond_timedwait)
 	[__NR_clock_gettime]: Cast result of INTERNAL_VSYSCALL to void
 	instead of storing in otherwise-unused variable.
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_post.c b/nptl/sysdeps/unix/sysv/linux/sem_post.c
index 67e8cc5..429d193 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_post.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_post.c
@@ -65,7 +65,7 @@ __old_sem_post (sem_t *sem)
 {
   int *futex = (int *) sem;
 
-  int nr = atomic_increment_val (futex);
+  (void) atomic_increment_val (futex);
   /* We always have to assume it is a shared semaphore.  */
   int err = lll_futex_wake (futex, 1, LLL_SHARED);
   if (__builtin_expect (err, 0) < 0)

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

Summary of changes:
 nptl/ChangeLog                          |    4 ++++
 nptl/sysdeps/unix/sysv/linux/sem_post.c |    2 +-
 2 files changed, 5 insertions(+), 1 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]