Fixed compiler warning

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15774 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2003-01-30 04:28:39 +00:00
parent c11218da2c
commit cb07412522
5 changed files with 6 additions and 5 deletions

View file

@ -432,7 +432,7 @@ static Class NSImageRep_class = NULL;
{ {
BOOL ok, reset; BOOL ok, reset;
NSGraphicsContext *ctxt; NSGraphicsContext *ctxt;
NSAffineTransform *ctm; NSAffineTransform *ctm = nil;
if (_size.width == 0 && _size.height == 0) if (_size.width == 0 && _size.height == 0)
return NO; return NO;

View file

@ -118,7 +118,7 @@ static NSNotificationCenter *nc = nil;
BOOL delegateConstrains = NO; BOOL delegateConstrains = NO;
SEL constrainSel = SEL constrainSel =
@selector(splitView:constrainSplitPosition:ofSubviewAt:); @selector(splitView:constrainSplitPosition:ofSubviewAt:);
IMP constrainImp; IMP constrainImp = 0;
/* if there are less the two subviews, there is nothing to do */ /* if there are less the two subviews, there is nothing to do */

View file

@ -254,8 +254,9 @@ drawRun(GSTextRun *run, NSPoint origin, GSDrawInfo *draw)
{ {
unsigned int size = 1; unsigned int size = 1;
unsigned char *dst = buf; unsigned char *dst = buf;
unichar glyph = run->glyphs[i].glyph;
GSFromUnicode(&dst, &size, &(run->glyphs[i].glyph), 1, enc, 0, 0); GSFromUnicode(&dst, &size, &glyph, 1, enc, 0, 0);
} }
else else
{ {

View file

@ -4182,7 +4182,7 @@ byExtendingSelection: (BOOL)flag
NSDate *distantFuture = [NSDate distantFuture]; NSDate *distantFuture = [NSDate distantFuture];
NSEvent *lastEvent; NSEvent *lastEvent;
NSSet *_oldSelectedRows; NSSet *_oldSelectedRows;
id delegateIfItTakesPart; id delegateIfItTakesPart = nil; /* Is this ever used ? */
BOOL mouseUp = NO; BOOL mouseUp = NO;
BOOL done = NO; BOOL done = NO;
BOOL draggingPossible = [self _isDraggingSource]; BOOL draggingPossible = [self _isDraggingSource];

View file

@ -1543,7 +1543,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
{ {
NSGraphicsContext *ctxt = GSCurrentContext(); NSGraphicsContext *ctxt = GSCurrentContext();
NSRect wrect; NSRect wrect;
int window_gstate; int window_gstate = 0;
if (viewIsPrinting == nil) if (viewIsPrinting == nil)
{ {