From b526738c3b27bc67a3e1017a051aab1163a34117 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 5 Dec 2011 09:57:00 +0000 Subject: * bignum.c (big_rshift), compile.c (validate_label, iseq_build_from_ary_exception), cont.c (cont_capture), dir.c (dir_open_dir), gc.c (objspace_each_objects), io.c (pipe_open) (rb_io_advise), parse.y (parser_compile_string) (rb_parser_compile_file), proc.c (binding_free), process.c (rb_proc_exec_n, rb_seteuid_core, proc_setegid, rb_setegid_core) (p_uid_exchange, p_gid_exchange), regparse.c (strdup_with_null), signal.c (sig_dfl), vm.c (rb_iseq_eval, rb_iseq_eval_main), vm_insnhelper.c (vm_expandarray): suppress unused-but-set-variable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 1b85db4a58..3061ed86e0 100644 --- a/parse.y +++ b/parse.y @@ -5300,7 +5300,6 @@ parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line) { struct parser_params *parser; NODE *node; - volatile VALUE tmp; TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); lex_gets = lex_get_str; @@ -5310,7 +5309,7 @@ parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line) compile_for_eval = rb_parse_in_eval(); node = yycompile(parser, f, line); - tmp = vparser; /* prohibit tail call optimization */ + RB_GC_GUARD(vparser); /* prohibit tail call optimization */ return node; } @@ -5361,7 +5360,6 @@ NODE* rb_parser_compile_file(volatile VALUE vparser, const char *f, VALUE file, int start) { struct parser_params *parser; - volatile VALUE tmp; NODE *node; TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); @@ -5371,7 +5369,7 @@ rb_parser_compile_file(volatile VALUE vparser, const char *f, VALUE file, int st compile_for_eval = rb_parse_in_eval(); node = yycompile(parser, f, start); - tmp = vparser; /* prohibit tail call optimization */ + RB_GC_GUARD(vparser); /* prohibit tail call optimization */ return node; } -- cgit v1.2.3