aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-26 05:16:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-26 05:16:04 +0000
commit25e5ea16519939a97fdc7a9d6f53d4491709c342 (patch)
treec61fa15de1ac7e63dfd2218d78592e27b4a70699 /include
parent094be07692101a0e215fbe6a8cd7c3c6a7e2b7b5 (diff)
downloadruby-25e5ea16519939a97fdc7a9d6f53d4491709c342.tar.gz
ruby.h: suppress warnings
* include/ruby/ruby.h (rb_scan_args_count): add filler nul bytes to suppress array-bounds warnings by old clang. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index a76576c890..af23b44739 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2196,8 +2196,8 @@ ERRORFUNC(("variable argument length doesn't match"), int rb_scan_args_length_mi
# 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)