diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-23 19:43:38 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-23 19:43:38 +0000 |
commit | 72171f4ba79e5cbb6eb82f0f243cf554f643e796 (patch) | |
tree | 9a57bfdac6a9aaa094ebcd87cc41e861781789d7 | |
parent | 07feaee646e061f27dceccc1c06262c2e832f560 (diff) | |
download | ruby_posix_mq-72171f4ba79e5cbb6eb82f0f243cf554f643e796.tar.gz |
These cannot be cast to void since its value is meaningful.
-rw-r--r-- | ext/posix_mq/posix_mq.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |