зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
be44af047a
Коммит
ef10b81c78
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче