From: Eric Wong Date: Thu, 16 Jun 2011 07:41:48 +0000 (+0000) Subject: fix compiler warnings, oops X-Git-Tag: v2.0.0~9 X-Git-Url: https://repo.or.cz/w/ruby_posix_mq.git/commitdiff_plain/3ae56d273aaa871a328ab5275f5700fa396dad03 fix compiler warnings, oops CFLAGS=-Wall somehow got disabled in my Ruby installation... --- 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); } /*