[前][次][番号順一覧][スレッド一覧]

ruby-changes:33909

From: nobu <ko1@a...>
Date: Sun, 18 May 2014 12:15:43 +0900 (JST)
Subject: [ruby-changes:33909] nobu:r45990 (trunk): enum.c: suppress warnings

nobu	2014-05-18 12:15:34 +0900 (Sun, 18 May 2014)

  New Revision: 45990

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45990

  Log:
    enum.c: suppress warnings
    
    * enum.c (sliceafter_ii): suppress unused-value warnings.

  Modified files:
    trunk/enum.c
Index: enum.c
===================================================================
--- enum.c	(revision 45989)
+++ enum.c	(revision 45990)
@@ -3094,7 +3094,7 @@ struct sliceafter_arg { https://github.com/ruby/ruby/blob/trunk/enum.c#L3094
 static VALUE
 sliceafter_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, _memo))
 {
-#define UPDATE_MEMO ((memo = MEMO_FOR(struct sliceafter_arg, _memo)), 1)
+#define UPDATE_MEMO ((void)(memo = MEMO_FOR(struct sliceafter_arg, _memo)))
     struct sliceafter_arg *memo;
     int split_p;
     UPDATE_MEMO;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]