From 3ae56d273aaa871a328ab5275f5700fa396dad03 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Jun 2011 07:41:48 +0000 Subject: [PATCH] fix compiler warnings, oops CFLAGS=-Wall somehow got disabled in my Ruby installation... --- ext/posix_mq/posix_mq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index 75b38e4..2958352 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -703,7 +703,6 @@ static VALUE _receive(int rflags, int argc, VALUE *argv, VALUE self) static VALUE getattr(VALUE self) { struct posix_mq *mq = get(self, 1); - VALUE astruct; if (mq_getattr(mq->des, &mq->attr) < 0) rb_sys_fail("mq_getattr"); @@ -1000,7 +999,7 @@ static VALUE setnonblock(VALUE self, VALUE nb) */ static VALUE trysend(int argc, VALUE *argv, VALUE self) { - _send(PMQ_TRY, argc, argv, self); + return _send(PMQ_TRY, argc, argv, self); } /* -- 2.11.4.GIT