ruby-changes:46596
From: nobu <ko1@a...>
Date: Sun, 14 May 2017 12:54:05 +0900 (JST)
Subject: [ruby-changes:46596] nobu:r58712 (trunk): suppress warning
nobu 2017-05-14 12:53:59 +0900 (Sun, 14 May 2017) New Revision: 58712 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58712 Log: suppress warning * spec/rubyspec/optional/capi/ext/fixnum_spec.c: suppress unused-but-set-variable warning. Modified files: trunk/spec/rubyspec/optional/capi/ext/fixnum_spec.c Index: spec/rubyspec/optional/capi/ext/fixnum_spec.c =================================================================== --- spec/rubyspec/optional/capi/ext/fixnum_spec.c (revision 58711) +++ spec/rubyspec/optional/capi/ext/fixnum_spec.c (revision 58712) @@ -29,6 +29,8 @@ void Init_fixnum_spec(void) { https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/ext/fixnum_spec.c#L29 #ifdef HAVE_RB_FIX2INT rb_define_method(cls, "rb_fix2int", fixnum_spec_rb_fix2int, 1); #endif + + (void)cls; } #ifdef __cplusplus -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/