diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-23 04:31:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-23 04:31:55 +0000 |
commit | c285a4e3578c30b074f665e5f63283800fe3e157 (patch) | |
tree | 7617766541ed2f9206f5e6be85cd2f58db7c2230 /ext/tk/tkutil/tkutil.c | |
parent | 19f143221cbcf5fb25b947081f98d93352194b7a (diff) | |
download | ruby-c285a4e3578c30b074f665e5f63283800fe3e157.tar.gz |
remove unnecessary volatiles
* ext/dbm/dbm.c (fdbm_initialize): used for rb_sys_fail_str.
* ext/sdbm/init.c (fsdbm_initialize): ditto.
* ext/tk/tcltklib.c (lib_do_one_event_core): no effect.
* ext/tk/tkutil/tkutil.c (tk_eval_cmd, tk_get_eval_string): no
effect if tail call optimized.
* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): set to const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/tkutil/tkutil.c')
-rw-r--r-- | ext/tk/tkutil/tkutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c index 1f0a720415..cd1fa2bc8d 100644 --- a/ext/tk/tkutil/tkutil.c +++ b/ext/tk/tkutil/tkutil.c @@ -187,7 +187,7 @@ tk_eval_cmd(argc, argv, self) VALUE argv[]; VALUE self; { - volatile VALUE cmd, rest; + VALUE cmd, rest; rb_scan_args(argc, argv, "1*", &cmd, &rest); return rb_eval_cmd(cmd, rest, 0); @@ -952,7 +952,7 @@ tk_get_eval_string(argc, argv, self) VALUE *argv; VALUE self; { - volatile VALUE obj, enc_flag; + VALUE obj, enc_flag; if (rb_scan_args(argc, argv, "11", &obj, &enc_flag) == 1) { enc_flag = Qnil; @@ -1563,7 +1563,7 @@ cbsubst_table_setup(argc, argv, self) VALUE *argv; VALUE self; { - volatile VALUE cbsubst_obj; + VALUE cbsubst_obj; VALUE key_inf; VALUE longkey_inf; VALUE proc_inf; |