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

* io.c (rb_io_ctl), parse.y (LVAR_USED): suppress warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-10-12 15:10:04 +00:00
parent cea3919ae6
commit a176b065d2
2 changed files with 2 additions and 2 deletions

2
io.c
View file

@ -7456,7 +7456,7 @@ rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
rb_str_resize(arg, len+1);
}
RSTRING_PTR(arg)[len] = 17; /* a little sanity check here */
narg = (long)RSTRING_PTR(arg);
narg = (long)(SIGNED_VALUE)RSTRING_PTR(arg);
}
}
GetOpenFile(io, fptr);

View file

@ -8921,7 +8921,7 @@ new_args_gen(struct parser_params *parser, NODE *m, NODE *o, ID r, NODE *p, ID b
}
#endif /* !RIPPER */
#define LVAR_USED (1UL << (sizeof(ID) * CHAR_BIT - 1))
#define LVAR_USED ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))
static void
warn_unused_var(struct parser_params *parser, struct local_vars *local)