> thanks for building 3.0 over and over. Yes, I think this may 
> be a good time to fix these warnings. The Workpsace stuff is 
> good enough to fix and detangle Fluid, and to add new source 
> files to fltk.lib to do the same thing.

OK - here's the editied highlights then... I've added a few trivial
comments but there's nothing too serious here, I think.


Warnings building r8912 on a 32-bit WinXP/mingw host.

(NOTE: Most of these, possibly all, are probably common to all hosts...
Most seem to be triggered by the change in the type of the key event
flags.)

Compiling Fl_Help_View.cxx...
Fl_Help_View.cxx: In member function `virtual int
fltk3::HelpView::handle(int)':
Fl_Help_View.cxx:3017: warning: comparison between signed and unsigned
integer expressions

        Caused by:
        if (fltk3::event_state() == fltk3::COMMAND)


Compiling Fl_Text_Editor.cxx...
In file included from Fl_Text_Editor.cxx:34:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'

        Caused by:
        const unsigned int TEXT_EDITOR_ANY_STATE = -1L;

        which triggers the same warning in many places.


Fl_Text_Editor.cxx: In member function `int (*
fltk3::TextEditor::bound_key_function(int, int,
fltk3::TextEditor::KeyBinding*))(int, fltk3::TextEditor*)':
Fl_Text_Editor.cxx:187: warning: comparison between signed and unsigned
integer expressions

        Caused by:
        if (cur->state == fltk3::TEXT_EDITOR_ANY_STATE || cur->state ==
state)

Fl_Text_Editor.cxx: In static member function `static int
fltk3::TextEditor::kf_ctrl_move(int, fltk3::TextEditor*)':
Fl_Text_Editor.cxx:333: warning: comparison between signed and unsigned
integer expressions
Fl_Text_Editor.cxx:333: warning: comparison between signed and unsigned
integer expressions
Fl_Text_Editor.cxx: In static member function `static int
fltk3::TextEditor::kf_meta_move(int, fltk3::TextEditor*)':
Fl_Text_Editor.cxx:373: warning: comparison between signed and unsigned
integer expressions
Fl_Text_Editor.cxx:373: warning: comparison between signed and unsigned
integer expressions


Compiling Fl_Tree.cxx...
Fl_Tree.cxx: In member function `fltk3::TreeItem*
fltk3::Tree::next_visible_item(fltk3::TreeItem*, int)':
Fl_Tree.cxx:334: warning: comparison between signed and unsigned integer
expressions
Fl_Tree.cxx: In member function `virtual int fltk3::Tree::handle(int)':
Fl_Tree.cxx:581: warning: comparison between signed and unsigned integer
expressions
Fl_Tree.cxx:586: warning: comparison between signed and unsigned integer
expressions


Compiling Fl_get_key.cxx...
In file included from Fl_get_key.cxx:29:
Fl_get_key_win32.cxx: In function `int fltk2ms(int)':
Fl_get_key_win32.cxx:114: warning: comparison between signed and
unsigned integer expressions
Fl_get_key_win32.cxx:114: warning: comparison between signed and
unsigned integer expressions
Fl_get_key_win32.cxx:115: warning: comparison between signed and
unsigned integer expressions
Fl_get_key_win32.cxx:115: warning: comparison between signed and
unsigned integer expressions


Compiling Fl_get_system_colors.cxx...
Fl_get_system_colors.cxx: In function `void fltk3::background(uchar,
uchar, uchar)':
Fl_get_system_colors.cxx:66: warning: comparison between signed and
unsigned integer expressions

        for (int i = 0; i < fltk3::NUM_GRAY; i++)


Compiling fl_utf.cxx...
In file included from fl_utf.cxx:951:
xutf8/mk_wcwidth.c: In function `int bisearch(unsigned int, const
interval*, int)':
xutf8/mk_wcwidth.c:92: warning: comparison between signed and unsigned
integer expressions

        if (ucs < table[0].first || ucs > table[max].last)

xutf8/mk_wcwidth.c:92: warning: comparison between signed and unsigned
integer expressions
xutf8/mk_wcwidth.c:96: warning: comparison between signed and unsigned
integer expressions
xutf8/mk_wcwidth.c:98: warning: comparison between signed and unsigned
integer expressions


Compiling glut_compatability.cxx...
glut_compatability.cxx: In member function `virtual int
fltk3::GlutWindow::handle(int)':
glut_compatability.cxx:155: warning: comparison between signed and
unsigned integer expressions
glut_compatability.cxx:155: warning: comparison between signed and
unsigned integer expressions
Compiling glut_font.cxx...


=== making fluid ===
Compiling CodeEditor.cxx...
In file included from CodeEditor.h:41,
                 from CodeEditor.cxx:36:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'

Compiling Fl_Function_Type.cxx...
In file included from function_panel.h:49,
                 from Fl_Function_Type.cxx:176:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'


Compiling Fl_Menu_Type.cxx...
Fl_Menu_Type.cxx: In member function `virtual int
Shortcut_Button::handle(int)':
Fl_Menu_Type.cxx:604: warning: comparison between signed and unsigned
integer expressions
Compiling Fl_Type.cxx...
pixmaps/flFluidFile.xpm:2: warning: 'flFluidFile_xpm' defined but not
used
pixmaps/flCodeFile.xpm:2: warning: 'flCodeFile_xpm' defined but not used

Compiling Fl_Widget_Type.cxx...
In file included from CodeEditor.h:41,
                 from widget_panel.h:105,
                 from Fl_Widget_Type.cxx:294:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'

Compiling Fl_Window_Type.cxx...
In file included from CodeEditor.h:41,
                 from widget_panel.h:105,
                 from Fl_Window_Type.cxx:64:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'
Fl_Window_Type.cxx:288: warning: cast to pointer from integer of
different size


Compiling factory.cxx...
factory.cxx:94: warning: cast to pointer from integer of different size

    This is a pointer/int size issue?

factory.cxx:95: warning: cast to pointer from integer of different size
factory.cxx:212: warning: cast to pointer from integer of different size
factory.cxx:213: warning: cast to pointer from integer of different size
factory.cxx:214: warning: cast to pointer from integer of different size
factory.cxx:215: warning: cast to pointer from integer of different size
factory.cxx:388: warning: cast to pointer from integer of different size
factory.cxx:389: warning: cast to pointer from integer of different size
factory.cxx:421: warning: cast to pointer from integer of different size
factory.cxx:422: warning: cast to pointer from integer of different size
factory.cxx:464: warning: cast to pointer from integer of different size
factory.cxx:465: warning: cast to pointer from integer of different size
factory.cxx:466: warning: cast to pointer from integer of different size
factory.cxx:467: warning: cast to pointer from integer of different size
factory.cxx:468: warning: cast to pointer from integer of different size
In file included from factory.cxx:603:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'
factory.cxx:724: warning: cast to pointer from integer of different size
factory.cxx:725: warning: cast to pointer from integer of different size
factory.cxx:745: warning: cast to pointer from integer of different size
factory.cxx:764: warning: cast to pointer from integer of different size
factory.cxx:765: warning: cast to pointer from integer of different size
factory.cxx:766: warning: cast to pointer from integer of different size
factory.cxx:767: warning: cast to pointer from integer of different size
factory.cxx:768: warning: cast to pointer from integer of different size
factory.cxx:769: warning: cast to pointer from integer of different size
factory.cxx:785: warning: cast to pointer from integer of different size
factory.cxx:786: warning: cast to pointer from integer of different size
factory.cxx:805: warning: cast to pointer from integer of different size
factory.cxx:806: warning: cast to pointer from integer of different size

Compiling fluid.cxx...
In file included from function_panel.h:49,
                 from fluid.cxx:53:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'
fluid.cxx: In function `void print_menu_cb(fltk3::Widget*, void*)':
fluid.cxx:1038: warning: passing `double' for converting 1 of `virtual
void fltk3::Printer::origin(int, int)'
fluid.cxx:1038: warning: passing `double' for converting 2 of `virtual
void fltk3::Printer::origin(int, int)'
fluid.cxx:1045: warning: passing `double' for converting 1 of `virtual
void fltk3::Printer::origin(int, int)'
fluid.cxx:1045: warning: passing `double' for converting 2 of `virtual
void fltk3::Printer::origin(int, int)'

Compiling function_panel.cxx...
In file included from function_panel.h:49,
                 from function_panel.cxx:30:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'


Compiling widget_panel.cxx...
In file included from CodeEditor.h:41,
                 from widget_panel.h:105,
                 from widget_panel.cxx:30:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'
Compiling workspace_panel.cxx...
workspace_panel.cxx: In function `void cb_Unknown(fltk3::MenuButton*,
void*)':
workspace_panel.cxx:335: warning: comparison between signed and unsigned
integer expressions


=== making test ===
Compiling editor.cxx...
In file included from editor.cxx:54:
../fltk3/TextEditor.h:46: warning: converting of negative value
`-0x000000001l' to `unsigned int'


Compiling keyboard.cxx...
keyboard.cxx: In function `int main(int, char**)':
keyboard.cxx:144: warning: comparison between signed and unsigned
integer expressions






SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to