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:
Nicola Pero 2003-01-30 04:28:39 +00:00
parent 6bf8718026
commit 33a0a5ea29
5 changed files with 6 additions and 5 deletions

View file

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

View file

@ -118,7 +118,7 @@ static NSNotificationCenter *nc = nil;
BOOL delegateConstrains = NO;
SEL constrainSel =
@selector(splitView:constrainSplitPosition:ofSubviewAt:);
IMP constrainImp;
IMP constrainImp = 0;
/* 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 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
{

View file

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

View file

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