Changeset: 326b1327219f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=326b1327219f
Modified Files:
        gdk/gdk_system.c
Branch: Apr2012
Log Message:

pthread_sema_{up,down}: variable ?status? set but not used


diffs (35 lines):

diff --git a/gdk/gdk_system.c b/gdk/gdk_system.c
--- a/gdk/gdk_system.c
+++ b/gdk/gdk_system.c
@@ -495,25 +495,25 @@ pthread_sema_destroy(pthread_sema_t *s)
 void
 pthread_sema_up(pthread_sema_t *s)
 {
-       int status = pthread_mutex_lock(&(s->mutex));
+       (void)pthread_mutex_lock(&(s->mutex));
 
        if (s->cnt++ < 0) {
                /* wake up sleeping thread */
-               status = pthread_cond_signal(&(s->cond));
+               (void)pthread_cond_signal(&(s->cond));
        }
-       status = pthread_mutex_unlock(&(s->mutex));
+       (void)pthread_mutex_unlock(&(s->mutex));
 }
 
 void
 pthread_sema_down(pthread_sema_t *s)
 {
-       int status = pthread_mutex_lock(&(s->mutex));
+       (void)pthread_mutex_lock(&(s->mutex));
 
        if (--s->cnt < 0) {
                /* thread goes to sleep */
-               status = pthread_cond_wait(&(s->cond), &(s->mutex));
+               (void)pthread_cond_wait(&(s->cond), &(s->mutex));
        }
-       status = pthread_mutex_unlock(&(s->mutex));
+       (void)pthread_mutex_unlock(&(s->mutex));
 }
 #endif
 #endif
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to