diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-09 01:42:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-09 01:42:51 +0000 |
commit | d8d78f07ae8a56e8398f40c1123f7ce316c7f9eb (patch) | |
tree | 03ef35c336ff0d93ed3f7386a3eada3f90deffed /ext/tk | |
parent | ed3139b79f557e1003ec4eb34bd702387cb057a9 (diff) | |
download | ruby-d8d78f07ae8a56e8398f40c1123f7ce316c7f9eb.tar.gz |
tcltk.rb: suppress a warning [ci skip]
* ext/tk/lib/tcltk.rb (TclTkWidget#initialize): suppress an
"assigned but unused variable" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r-- | ext/tk/lib/tcltk.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/tk/lib/tcltk.rb b/ext/tk/lib/tcltk.rb index 7796bb86ef..121f42c26e 100644 --- a/ext/tk/lib/tcltk.rb +++ b/ext/tk/lib/tcltk.rb @@ -295,6 +295,7 @@ class TclTkWidget < TclTkCommand res = @ip._eval_args(command, exp, *args) # fail("can't create Widget") if res != exp # for tk_optionMenu, it is legal res != exp + return res else fail("first parameter is not TclTkInterpreter") end |