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 | c499ba875a58e50bc207f76aad6971081b60bfa9 (patch) | |
tree | 03ef35c336ff0d93ed3f7386a3eada3f90deffed /ext | |
parent | f952ad2dd3dcd76acb35f98912ecbed02d60c873 (diff) | |
download | ruby-c499ba875a58e50bc207f76aad6971081b60bfa9.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')
-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 |