ruby-changes:43100
From: nobu <ko1@a...>
Date: Thu, 26 May 2016 14:16:10 +0900 (JST)
Subject: [ruby-changes:43100] nobu:r55174 (trunk): ruby.h: suppress warnings
nobu 2016-05-26 14:16:04 +0900 (Thu, 26 May 2016) New Revision: 55174 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55174 Log: ruby.h: suppress warnings * include/ruby/ruby.h (rb_scan_args_count): add filler nul bytes to suppress array-bounds warnings by old clang. Modified files: trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 55173) +++ include/ruby/ruby.h (revision 55174) @@ -2196,8 +2196,8 @@ ERRORFUNC(("variable argument length doe https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2196 # define rb_scan_args_count(fmt, varc) \ (!rb_scan_args_isdigit(fmt[0]) ? \ - rb_scan_args_count_var(fmt, 0, varc, 0) : \ - rb_scan_args_count_opt(fmt, 1, varc, fmt[0]-'0')) + rb_scan_args_count_var(fmt"\0\0\0\0", 0, varc, 0) : \ + rb_scan_args_count_opt(fmt"\0\0\0\0\0\0", 1, varc, fmt[0]-'0')) # define rb_scan_args_lead_p(fmt) rb_scan_args_isdigit(fmt[0]) # define rb_scan_args_n_lead(fmt) (rb_scan_args_lead_p(fmt) ? fmt[0]-'0' : 0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/