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
1184 | 1184 | FXTRACE((100,"FXRbHandleMessage(recv=%p(%s),FXSEL(%s,%d)\n",recv,recv->getClassName(),FXDebugTarget::messageTypeName[FXSELTYPE(key)],FXSELID(key))); |
1185 | 1185 | |
1186 | 1186 | 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, | |
1189 | 1189 | rb_eStandardError, rb_eNameError, 0); |
1190 | 1190 | } |
1191 | 1191 | else{ |