[Groonga-commit] droonga/droonga-engine at 374e3c0 [master] Suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Nov 2 20:56:42 JST 2014


Kouhei Sutou	2014-11-02 20:56:42 +0900 (Sun, 02 Nov 2014)

  New Revision: 374e3c03292b482fc7c6f03613d48204cccb7377
  https://github.com/droonga/droonga-engine/commit/374e3c03292b482fc7c6f03613d48204cccb7377

  Message:
    Suppress a warning
    
        lib/droonga/plugins/groonga/select.rb:239: warning: assigned but unused variable - name

  Modified files:
    lib/droonga/plugins/groonga/select.rb

  Modified: lib/droonga/plugins/groonga/select.rb (+1 -0)
===================================================================
--- lib/droonga/plugins/groonga/select.rb    2014-10-31 16:40:44 +0900 (e535f2e)
+++ lib/droonga/plugins/groonga/select.rb    2014-11-02 20:56:42 +0900 (52a010f)
@@ -237,6 +237,7 @@ module Droonga
             records.collect do |record|
               record.collect.each_with_index do |value, i|
                 name, type = attributes[i]
+                _ = name # suppress a warning
                 case type
                 when "Time"
                   normalize_time(value).to_f
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index