Codebase list ruby-fxruby / 6a87122
Avoid warning on ruby-head ../../../../ext/fox16_c/FXRuby.cpp: In function ‘long int FXRbHandleMessage_gvlcb(FX::FXObject*, ID, FX::FXObject*, FX::FXSelector, void*)’: ../../../../ext/fox16_c/FXRuby.cpp:1190:58: warning: ‘VALUE ruby::backward::cxxanyargs::rb_rescue2(VALUE (*)(...), VALUE, VALUE (*)(...), VALUE, ...)’ is deprecated: Use of ANYARGS in this function is deprecated [-Wdeprecated-declarations] rb_eStandardError, rb_eNameError, 0); ^ In file included from /home/local/COMCARD-NT/kanis/.rvm/rubies/ruby-head/include/ruby-2.8.0/ruby/ruby.h:2753:0, from /home/local/COMCARD-NT/kanis/.rvm/rubies/ruby-head/include/ruby-2.8.0/ruby.h:33, from ../../../../ext/fox16_c/include/FXRbCommon.h:27, from ../../../../ext/fox16_c/FXRuby.cpp:31: /home/local/COMCARD-NT/kanis/.rvm/rubies/ruby-head/include/ruby-2.8.0/ruby/backward/cxxanyargs.hpp:222:1: note: declared here rb_rescue2(type *q, VALUE w, type *e, VALUE r, ...) ^~~~~~~~~~ Lars Kanis 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
11841184 FXTRACE((100,"FXRbHandleMessage(recv=%p(%s),FXSEL(%s,%d)\n",recv,recv->getClassName(),FXDebugTarget::messageTypeName[FXSELTYPE(key)],FXSELID(key)));
11851185
11861186 if(FXRbCatchExceptions){
1187 retval=rb_rescue2(RUBY_METHOD_FUNC(handle_body), reinterpret_cast<VALUE>(&hArgs),
1188 RUBY_METHOD_FUNC(handle_rescue), Qnil,
1187 retval=rb_rescue2(RUBY_VALUE_METHOD_FUNC(handle_body), reinterpret_cast<VALUE>(&hArgs),
1188 RUBY_VALUE_METHOD_FUNC(handle_rescue), Qnil,
11891189 rb_eStandardError, rb_eNameError, 0);
11901190 }
11911191 else{