ruby-changes:43766
From: nobu <ko1@a...>
Date: Tue, 9 Aug 2016 10:42:55 +0900 (JST)
Subject: [ruby-changes:43766] nobu:r55839 (trunk): tcltk.rb: suppress a warning [ci skip]
nobu 2016-08-09 10:42:51 +0900 (Tue, 09 Aug 2016) New Revision: 55839 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55839 Log: tcltk.rb: suppress a warning [ci skip] * ext/tk/lib/tcltk.rb (TclTkWidget#initialize): suppress an "assigned but unused variable" warning. Modified files: trunk/ext/tk/lib/tcltk.rb Index: ext/tk/lib/tcltk.rb =================================================================== --- ext/tk/lib/tcltk.rb (revision 55838) +++ ext/tk/lib/tcltk.rb (revision 55839) @@ -295,6 +295,7 @@ class TclTkWidget < TclTkCommand https://github.com/ruby/ruby/blob/trunk/ext/tk/lib/tcltk.rb#L295 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/