Remove some stupid compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30091 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-04-06 08:12:47 +00:00
parent d4b51a7b63
commit 211d150a79
5 changed files with 17 additions and 10 deletions

View file

@ -1,3 +1,10 @@
2010-04-06 Fred Kiefer <FredKiefer@gmx.de>
* ColorPickers/GSWheelColorPicker.m,
* Source/NSTableHeaderView.m,
* Source/NSStringDrawing.m,
* Source/NSWorkspace.m: Remove some stupid compiler warnings.
2010-04-05 Fred Kiefer <FredKiefer@gmx.de> 2010-04-05 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSGModelLoader.m, * Source/GSGModelLoader.m,

View file

@ -168,7 +168,7 @@
NSPoint point = [self convertPoint: [theEvent locationInWindow] NSPoint point = [self convertPoint: [theEvent locationInWindow]
fromView: nil]; fromView: nil];
NSEventType eventType = [theEvent type]; NSEventType eventType = [theEvent type];
NSEvent *presentEvent; NSEvent *presentEvent = theEvent;
float new_hue, new_saturation; float new_hue, new_saturation;
float old_x, old_y; float old_x, old_y;

View file

@ -456,7 +456,7 @@ glyphs to be drawn upside-down, so we need to tell NSFont to flip the fonts.
cache_t *c; cache_t *c;
NSRange r; NSRange r;
BOOL need_clip; BOOL need_clip = NO;
NSGraphicsContext *ctxt = GSCurrentContext(); NSGraphicsContext *ctxt = GSCurrentContext();
if (rect.size.width <= 0 || rect.size.height <= 0) 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 - (NSSize) size
{ {
int ci; int ci;
NSSize result; NSSize result = NSZeroSize;
cache_lock(); cache_lock();
NS_DURING 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 options: (NSStringDrawingOptions)options
{ {
int ci; int ci;
NSRect result; NSRect result = NSZeroRect;
cache_lock(); cache_lock();
NS_DURING NS_DURING
@ -660,7 +660,7 @@ NSAttributedString to do the job.
cache_t *c; cache_t *c;
NSRange r; NSRange r;
BOOL need_clip; BOOL need_clip = NO;
NSGraphicsContext *ctxt = GSCurrentContext(); NSGraphicsContext *ctxt = GSCurrentContext();
if (rect.size.width <= 0 || rect.size.height <= 0) if (rect.size.width <= 0 || rect.size.height <= 0)
@ -743,7 +743,7 @@ NSAttributedString to do the job.
- (NSSize) sizeWithAttributes: (NSDictionary *)attrs - (NSSize) sizeWithAttributes: (NSDictionary *)attrs
{ {
int ci; int ci;
NSSize result; NSSize result = NSZeroSize;
cache_lock(); cache_lock();
NS_DURING NS_DURING
@ -773,7 +773,7 @@ NSAttributedString to do the job.
attributes: (NSDictionary *)attributes attributes: (NSDictionary *)attributes
{ {
int ci; int ci;
NSRect result; NSRect result = NSZeroRect;
cache_lock(); cache_lock();
NS_DURING NS_DURING

View file

@ -348,7 +348,7 @@
const float columnMinX = NSMinX([self headerRectOfColumn: _resizedColumn]); const float columnMinX = NSMinX([self headerRectOfColumn: _resizedColumn]);
const float columnMinWidth = [column minWidth]; const float columnMinWidth = [column minWidth];
const float columnMaxWidth = [column maxWidth]; const float columnMaxWidth = [column maxWidth];
float newColumnWidth; float newColumnWidth = [column width];
float newColumnMaxX; float newColumnMaxX;
NSRect oldHighlightRect; NSRect oldHighlightRect;
NSRect highlightRect = [self visibleRect]; NSRect highlightRect = [self visibleRect];

View file

@ -2586,8 +2586,8 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
- (id) _connectApplication: (NSString*)appName - (id) _connectApplication: (NSString*)appName
{ {
NSTimeInterval replyTimeout; NSTimeInterval replyTimeout = 0.0;
NSTimeInterval requestTimeout; NSTimeInterval requestTimeout = 0.0;
NSString *host; NSString *host;
NSString *port; NSString *port;
NSDate *when = nil; NSDate *when = nil;