On Thu, Jun 28, 2007 at 08:19:12PM +0300, Michael Shigorin wrote: > On Thu, Jun 28, 2007 at 08:38:30PM +0400, QA Team Robot wrote: > > package libfltk-1.1.7-alt2 was orphaned [18] (Alexey Tourbin). > > Compiling cursor.cxx... > ../FL/Fl_Image.H: In constructor 'Fl_RGB_Image::Fl_RGB_Image(const uchar*, int, int, int, int)': > ../FL/Fl_Image.H:95: warning: dereferencing type-punned pointer will break strict-aliasing rules > cursor.cxx: In function 'void choice_cb(Fl_Widget*, void*)': > cursor.cxx:42: error: cast from 'void*' to 'int' loses precision > make[1]: *** [cursor.o] Error 1 void choice_cb(Fl_Widget *, void *v) { cursor = (Fl_Cursor)(int)v; ... {"FL_CURSOR_DEFAULT",0,choice_cb,(void*)FL_CURSOR_DEFAULT}, {"FL_CURSOR_ARROW",0,choice_cb,(void*)FL_CURSOR_ARROW}, ... В указателе на самом деле лежит число; в этом случае достаточно заменить int на long - такое преобразование указателя пройдёт нормально.