1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-05-18 03:15:34 +00:00
parent 6c0ce8f0e6
commit 8d236c317f

2
enum.c
View file

@ -3094,7 +3094,7 @@ struct sliceafter_arg {
static VALUE static VALUE
sliceafter_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, _memo)) 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; struct sliceafter_arg *memo;
int split_p; int split_p;
UPDATE_MEMO; UPDATE_MEMO;