[ruby-cvs:70388] k0kubun:r63298 (trunk): _mjit_compile_send.erb: fix pointer conversion warning

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sun Apr 29 12:20:31 JST 2018


k0kubun	2018-04-29 12:20:31 +0900 (Sun, 29 Apr 2018)

  New Revision: 63298

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63298

  Log:
    _mjit_compile_send.erb: fix pointer conversion warning
    
    /var/folders/b0/9hgj_tyx10zgkcbyx3_j2dlr0000gn/T//_ruby_mjit_p72619u0.c:37:58: warning: incompatible integer to pointer
          conversion passing 'long' to parameter of type 'const struct rb_call_info *' [-Wint-conversion]
            vm_caller_setup_arg_block(ec, reg_cfp, &calling, 0x7ff6b2e10ca0, 0x7ff6b3847108, FALSE);
                                                             ^~~~~~~~~~~~~~
    /Users/kokubun/.rbenv/versions/ruby-svn/include/ruby-2.6.0/x86_64-darwin16/rb_mjit_min_header-2.6.0.h:15613:66: note:
          passing argument to parameter 'ci' here
         struct rb_calling_info *calling, const struct rb_call_info *ci, rb_iseq_t *blockiseq, const int is_super)
                                                                     ^
    /var/folders/b0/9hgj_tyx10zgkcbyx3_j2dlr0000gn/T//_ruby_mjit_p72619u0.c:37:74: warning: incompatible integer to pointer
          conversion passing 'long' to parameter of type 'rb_iseq_t *' (aka 'struct rb_iseq_struct *') [-Wint-conversion]
            vm_caller_setup_arg_block(ec, reg_cfp, &calling, 0x7ff6b2e10ca0, 0x7ff6b3847108, FALSE);
                                                                             ^~~~~~~~~~~~~~
    /Users/kokubun/.rbenv/versions/ruby-svn/include/ruby-2.6.0/x86_64-darwin16/rb_mjit_min_header-2.6.0.h:15613:81: note:
          passing argument to parameter 'blockiseq' here
         struct rb_calling_info *calling, const struct rb_call_info *ci, rb_iseq_t *blockiseq, const int is_super)
                                                                                    ^
    2 warnings generated.

  Modified files:
    trunk/tool/ruby_vm/views/_mjit_compile_send.erb


More information about the ruby-cvs mailing list