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 | 50a5464da11c8da7ab1af0f335dfa599dc63562f (patch) | |
tree | 7617766541ed2f9206f5e6be85cd2f58db7c2230 /ext/dbm/dbm.c | |
parent | b5dec35946e9ae3750d49b17fc7bd0958a8cde0a (diff) | |
download | ruby-50a5464da11c8da7ab1af0f335dfa599dc63562f.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/dbm/dbm.c')
-rw-r--r-- | ext/dbm/dbm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index 7f9d96e3fd..07044d6f9f 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -145,8 +145,7 @@ fdbm_alloc(VALUE klass) static VALUE fdbm_initialize(int argc, VALUE *argv, VALUE obj) { - volatile VALUE file; - VALUE vmode, vflags; + VALUE file, vmode, vflags; DBM *dbm; struct dbmdata *dbmp; int mode, flags = 0; |