From e7c8073a62784ed88e64ba7b2e321b5e1aa10e26 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 30 Sep 2017 11:50:14 +0000 Subject: dbm.c: suppress unused-but-set-variable warning git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dbm/dbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dbm/dbm.c') diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index c3229d65c5..fec06a0dac 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -24,7 +24,7 @@ #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)) -- cgit v1.2.3