diff --git a/ChangeLog b/ChangeLog index 7fef29d80..9489babce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-04-06 Fred Kiefer + + * ColorPickers/GSWheelColorPicker.m, + * Source/NSTableHeaderView.m, + * Source/NSStringDrawing.m, + * Source/NSWorkspace.m: Remove some stupid compiler warnings. + 2010-04-05 Fred Kiefer * Source/GSGModelLoader.m, diff --git a/ColorPickers/GSWheelColorPicker.m b/ColorPickers/GSWheelColorPicker.m index 8fde618bd..f49c70570 100644 --- a/ColorPickers/GSWheelColorPicker.m +++ b/ColorPickers/GSWheelColorPicker.m @@ -168,7 +168,7 @@ NSPoint point = [self convertPoint: [theEvent locationInWindow] fromView: nil]; NSEventType eventType = [theEvent type]; - NSEvent *presentEvent; + NSEvent *presentEvent = theEvent; float new_hue, new_saturation; float old_x, old_y; diff --git a/Source/NSStringDrawing.m b/Source/NSStringDrawing.m index 0ada423a9..a0cddefbf 100644 --- a/Source/NSStringDrawing.m +++ b/Source/NSStringDrawing.m @@ -456,7 +456,7 @@ glyphs to be drawn upside-down, so we need to tell NSFont to flip the fonts. cache_t *c; NSRange r; - BOOL need_clip; + BOOL need_clip = NO; NSGraphicsContext *ctxt = GSCurrentContext(); if (rect.size.width <= 0 || rect.size.height <= 0) @@ -540,7 +540,7 @@ glyphs to be drawn upside-down, so we need to tell NSFont to flip the fonts. - (NSSize) size { int ci; - NSSize result; + NSSize result = NSZeroSize; cache_lock(); NS_DURING @@ -569,7 +569,7 @@ glyphs to be drawn upside-down, so we need to tell NSFont to flip the fonts. options: (NSStringDrawingOptions)options { int ci; - NSRect result; + NSRect result = NSZeroRect; cache_lock(); NS_DURING @@ -660,7 +660,7 @@ NSAttributedString to do the job. cache_t *c; NSRange r; - BOOL need_clip; + BOOL need_clip = NO; NSGraphicsContext *ctxt = GSCurrentContext(); if (rect.size.width <= 0 || rect.size.height <= 0) @@ -743,7 +743,7 @@ NSAttributedString to do the job. - (NSSize) sizeWithAttributes: (NSDictionary *)attrs { int ci; - NSSize result; + NSSize result = NSZeroSize; cache_lock(); NS_DURING @@ -773,7 +773,7 @@ NSAttributedString to do the job. attributes: (NSDictionary *)attributes { int ci; - NSRect result; + NSRect result = NSZeroRect; cache_lock(); NS_DURING diff --git a/Source/NSTableHeaderView.m b/Source/NSTableHeaderView.m index fc8492ce9..f8d691b6a 100644 --- a/Source/NSTableHeaderView.m +++ b/Source/NSTableHeaderView.m @@ -348,7 +348,7 @@ const float columnMinX = NSMinX([self headerRectOfColumn: _resizedColumn]); const float columnMinWidth = [column minWidth]; const float columnMaxWidth = [column maxWidth]; - float newColumnWidth; + float newColumnWidth = [column width]; float newColumnMaxX; NSRect oldHighlightRect; NSRect highlightRect = [self visibleRect]; diff --git a/Source/NSWorkspace.m b/Source/NSWorkspace.m index bf963186c..ca2edd808 100644 --- a/Source/NSWorkspace.m +++ b/Source/NSWorkspace.m @@ -2586,8 +2586,8 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath - (id) _connectApplication: (NSString*)appName { - NSTimeInterval replyTimeout; - NSTimeInterval requestTimeout; + NSTimeInterval replyTimeout = 0.0; + NSTimeInterval requestTimeout = 0.0; NSString *host; NSString *port; NSDate *when = nil;