mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_method.c: suppress warnings
* vm_method.c (call_cfunc_invoker_func): suppress wrong warnings "C4550: expression evaluates to a function which is missing an argument list." by VC6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
063cdaeddc
commit
2d59c39978
1 changed files with 18 additions and 18 deletions
36
vm_method.c
36
vm_method.c
|
@ -367,24 +367,24 @@ static VALUE
|
|||
(*call_cfunc_invoker_func(int argc))(VALUE (*func)(ANYARGS), VALUE recv, int argc, const VALUE *)
|
||||
{
|
||||
switch (argc) {
|
||||
case -2: return call_cfunc_m2;
|
||||
case -1: return call_cfunc_m1;
|
||||
case 0: return call_cfunc_0;
|
||||
case 1: return call_cfunc_1;
|
||||
case 2: return call_cfunc_2;
|
||||
case 3: return call_cfunc_3;
|
||||
case 4: return call_cfunc_4;
|
||||
case 5: return call_cfunc_5;
|
||||
case 6: return call_cfunc_6;
|
||||
case 7: return call_cfunc_7;
|
||||
case 8: return call_cfunc_8;
|
||||
case 9: return call_cfunc_9;
|
||||
case 10: return call_cfunc_10;
|
||||
case 11: return call_cfunc_11;
|
||||
case 12: return call_cfunc_12;
|
||||
case 13: return call_cfunc_13;
|
||||
case 14: return call_cfunc_14;
|
||||
case 15: return call_cfunc_15;
|
||||
case -2: return &call_cfunc_m2;
|
||||
case -1: return &call_cfunc_m1;
|
||||
case 0: return &call_cfunc_0;
|
||||
case 1: return &call_cfunc_1;
|
||||
case 2: return &call_cfunc_2;
|
||||
case 3: return &call_cfunc_3;
|
||||
case 4: return &call_cfunc_4;
|
||||
case 5: return &call_cfunc_5;
|
||||
case 6: return &call_cfunc_6;
|
||||
case 7: return &call_cfunc_7;
|
||||
case 8: return &call_cfunc_8;
|
||||
case 9: return &call_cfunc_9;
|
||||
case 10: return &call_cfunc_10;
|
||||
case 11: return &call_cfunc_11;
|
||||
case 12: return &call_cfunc_12;
|
||||
case 13: return &call_cfunc_13;
|
||||
case 14: return &call_cfunc_14;
|
||||
case 15: return &call_cfunc_15;
|
||||
default:
|
||||
rb_bug("call_cfunc_func: unsupported length: %d", argc);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue