Avoid gcc waring:
../../../../ext/fox16_c/FXRuby.cpp: In function ‘VALUE FXRbConvertMessageData(FX::FXObject*, FX::FXObject*, FX::FXSelector, void*)’:
../../../../ext/fox16_c/FXRuby.cpp:578:17: warning: variable ‘fff’ set but not used [-Wunused-but-set-variable]
FXInputHandle fff;
^~~
Lars Kanis
7 years ago
574 | 574 | */ |
575 | 575 | static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector sel,void* ptr){ |
576 | 576 | FXTRACE((1,"FXRbConvertMessageData(%s(%p),FXSEL(%s,%d),%p)\n",sender->getClassName(),sender,FXDebugTarget::messageTypeName[FXSELTYPE(sel)],FXSELID(sel),ptr)); |
577 | FXInputHandle fff; | |
578 | 577 | FXushort type=FXSELTYPE(sel); |
579 | 578 | FXushort id=FXSELID(sel); |
580 | 579 | |
641 | 640 | else if(type==SEL_IO_READ || |
642 | 641 | type==SEL_IO_WRITE || |
643 | 642 | type==SEL_IO_EXCEPT){ |
644 | #ifdef WIN32 | |
645 | fff=reinterpret_cast<FXInputHandle>(ptr); | |
646 | #else | |
647 | fff=static_cast<FXInputHandle>(reinterpret_cast<long>(ptr)); | |
648 | #endif | |
649 | 643 | return Qnil; |
650 | 644 | } |
651 | 645 | else if(type==SEL_CLOSE || |