From 72171f4ba79e5cbb6eb82f0f243cf554f643e796 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 23 Feb 2011 19:43:38 +0000 Subject: fix MQ_IO_NIL_P and MQ_IO_CLOSE macros These cannot be cast to void since its value is meaningful. --- ext/posix_mq/posix_mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/posix_mq/posix_mq.c') diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index d59cd30..3340b00 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -31,8 +31,8 @@ #else # define MQ_IO_MARK(mq) ((void)(0)) # define MQ_IO_SET(mq,val) ((void)(0)) -# define MQ_IO_CLOSE(mq) ((void)(0)) -# define MQ_IO_NIL_P(mq) ((void)(1)) +# define MQ_IO_CLOSE(mq) ((int)(0)) +# define MQ_IO_NIL_P(mq) ((int)(1)) #endif struct posix_mq { -- cgit v1.2.3-24-ge0c7