[Groonga-commit] groonga/groonga-test [master] Suppress warnings

Back to archive index

null+****@clear***** null+****@clear*****
2012年 3月 6日 (火) 16:37:35 JST


Kouhei Sutou	2012-03-06 16:37:35 +0900 (Tue, 06 Mar 2012)

  New Revision: 7dae5e35dc7a03ea71dfff40f0f1c2079162e3cc

  Log:
    Suppress warnings

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+2 -0)
===================================================================
--- lib/groonga/tester.rb    2012-03-06 16:36:44 +0900 (07b0976)
+++ lib/groonga/tester.rb    2012-03-06 16:37:35 +0900 (102e5c3)
@@ -238,10 +238,12 @@ module Groonga
 
       def normalize_status(status)
         return_code, started_time, elapsed_time, *rest = status
+        _ = started_time = elapsed_time # for suppress warnings
         if return_code.zero?
           [0, 0.0, 0.0]
         else
           message, backtrace = rest
+          _ = backtrace # for suppress warnings
           [[return_code, 0.0, 0.0], message]
         end
       end




Groonga-commit メーリングリストの案内
Back to archive index