summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 03:15:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 03:15:34 +0000
commit8d236c317f795cb2febc538831400a7add852df7 (patch)
treeec76b25386de0dba79dbf400581e38e85fea261a /enum.c
parent6c0ce8f0e6d5244ea081ef615560ac64b2c00a1b (diff)
enum.c: suppress warnings
* enum.c (sliceafter_ii): suppress unused-value warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index ec11970..fa1a967 100644
--- a/enum.c
+++ b/enum.c
@@ -3094,7 +3094,7 @@ struct sliceafter_arg {
static VALUE
sliceafter_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, _memo))
{
-#define UPDATE_MEMO ((memo = MEMO_FOR(struct sliceafter_arg, _memo)), 1)
+#define UPDATE_MEMO ((void)(memo = MEMO_FOR(struct sliceafter_arg, _memo)))
struct sliceafter_arg *memo;
int split_p;
UPDATE_MEMO;