DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Build on OSX warns with:
Compiling Fl.cxx...
Fl_mac.cxx: In function 'OSStatus
carbonMouseHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
Fl_mac.cxx:967: warning: 'part' may be used uninitialized in this function
Trivial patch attached:
Link: http://www.fltk.org/str.php?L1670
Version: 1.1-current
--- Fl_mac.cxx 2007-05-05 13:23:56.000000000 +0100
+++ ../src/Fl_mac.cxx 2007-05-05 13:24:04.000000000 +0100
@@ -964,7 +964,7 @@
UInt32 chord;
GetEventParameter( event, kEventParamMouseChord, typeUInt32, NULL,
sizeof(UInt32), NULL, &chord );
WindowRef xid = fl_xid(window), tempXid;
- int sendEvent = 0, part;
+ int sendEvent = 0, part = 0;
switch ( GetEventKind( event ) )
{
case kEventMouseDown:
_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs