summaryrefslogtreecommitdiff
path: root/include/ruby
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
commitef10b81c7839e6769c72ecdd6f54bad0d83a9038 (patch)
treec61fa15de1ac7e63dfd2218d78592e27b4a70699 /include/ruby
parentbe44af047a954fbbdbe6fa0eca988e9159ae2476 (diff)
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/ruby')
-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)