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:
Fred Kiefer 2010-04-06 08:12:47 +00:00
parent 121be97eb5
commit 03cdf3355c
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>
* Source/GSGModelLoader.m,

View file

@ -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;

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;
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

View file

@ -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];

View file

@ -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;