From 09e958ed423b99f97f5fd4b101964dfc9e3b32c0 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 21 Nov 2012 20:00:52 +0000 Subject: [PATCH] Remove unused variable from sem_post.c. --- nptl/ChangeLog | 4 ++++ nptl/sysdeps/unix/sysv/linux/sem_post.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 745accdaf7..7c8736cac3 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,9 @@ 2012-11-21 Joseph Myers + * 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 67e8cc5429..429d1932f2 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) -- 2.43.5