ruby-changes:53597
From: nobu <ko1@a...>
Date: Tue, 20 Nov 2018 00:00:50 +0900 (JST)
Subject: [ruby-changes:53597] nobu:r65812 (trunk): ruby/ruby.h: void rb_scan_args_verify
nobu 2018-11-20 00:00:35 +0900 (Tue, 20 Nov 2018) New Revision: 65812 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65812 Log: ruby/ruby.h: void rb_scan_args_verify * include/ruby/ruby.h (rb_scan_args_verify): void the never used result. Modified files: trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 65811) +++ include/ruby/ruby.h (revision 65812) @@ -2316,10 +2316,10 @@ ERRORFUNC(("variable argument length doe https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2316 rb_scan_args_length_mismatch(fmt, varc))) # if defined(__has_attribute) && __has_attribute(diagnose_if) -# define rb_scan_args_verify(fmt, varc) 0 +# define rb_scan_args_verify(fmt, varc) (void)0 # elif defined(__GNUC__) # define rb_scan_args_verify(fmt, varc) \ - __extension__ ({ \ + (void)__extension__ ({ \ int verify; \ _Pragma("GCC diagnostic push"); \ _Pragma("GCC diagnostic ignored \"-Warray-bounds\""); \ @@ -2329,7 +2329,7 @@ ERRORFUNC(("variable argument length doe https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2329 }) # else # define rb_scan_args_verify(fmt, varc) \ - rb_scan_args_verify_count(fmt, varc) + (void)rb_scan_args_verify_count(fmt, varc) # endif ALWAYS_INLINE(static int rb_scan_args_lead_p(const char *fmt)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/