1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

The value of rb_scan_args_verify is never used

This commit is contained in:
Nobuyoshi Nakada 2019-08-06 11:56:37 +09:00
parent 5cff9968ae
commit 4daff3a603
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -2324,11 +2324,11 @@ int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
((VALUE*[]){__VA_ARGS__})), \
rb_scan_args(argc,argvp,fmt,##__VA_ARGS__))
# if HAVE_ATTRIBUTE_ERRORFUNC
ERRORFUNC(("bad scan arg format"), int rb_scan_args_bad_format(const char*));
ERRORFUNC(("variable argument length doesn't match"), int rb_scan_args_length_mismatch(const char*,int));
ERRORFUNC(("bad scan arg format"), void rb_scan_args_bad_format(const char*));
ERRORFUNC(("variable argument length doesn't match"), void rb_scan_args_length_mismatch(const char*,int));
# else
# define rb_scan_args_bad_format(fmt) 0
# define rb_scan_args_length_mismatch(fmt, varc) 0
# define rb_scan_args_bad_format(fmt) ((void)0)
# define rb_scan_args_length_mismatch(fmt, varc) ((void)0)
# endif
# define rb_scan_args_isdigit(c) ((unsigned char)((c)-'0')<10)
@ -2378,7 +2378,7 @@ ERRORFUNC(("variable argument length doesn't match"), int rb_scan_args_length_mi
rb_scan_args_bad_format(fmt) : \
sizeof(char[1-2*(rb_scan_args_count(fmt)!=(varc))])!=1 ? \
rb_scan_args_length_mismatch(fmt, varc) : \
(int)(varc))
(void)0)
# endif
ALWAYS_INLINE(static int rb_scan_args_lead_p(const char *fmt));