ruby-changes:47960
From: nobu <ko1@a...>
Date: Sat, 30 Sep 2017 20:50:20 +0900 (JST)
Subject: [ruby-changes:47960] nobu:r60075 (trunk): dbm.c: suppress unused-but-set-variable warning
nobu 2017-09-30 20:50:14 +0900 (Sat, 30 Sep 2017) New Revision: 60075 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60075 Log: dbm.c: suppress unused-but-set-variable warning Modified files: trunk/ext/dbm/dbm.c Index: ext/dbm/dbm.c =================================================================== --- ext/dbm/dbm.c (revision 60074) +++ ext/dbm/dbm.c (revision 60075) @@ -24,7 +24,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/dbm/dbm.c#L24 #define DSIZE_TYPE TYPEOF_DATUM_DSIZE #if SIZEOF_DATUM_DSIZE > SIZEOF_INT # define RSTRING_DSIZE(s) RSTRING_LEN(s) -# define TOO_LONG(n) 0 +# define TOO_LONG(n) ((void)(n),0) #else # define RSTRING_DSIZE(s) RSTRING_LENINT(s) # define TOO_LONG(n) ((long)(+(DSIZE_TYPE)(n)) != (n)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/