Fixed compiler warnings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15775 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2003-01-30 04:29:00 +00:00
parent 33a0a5ea29
commit 710652a86c
2 changed files with 4 additions and 3 deletions

View file

@ -787,7 +787,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
fromRect: (NSRect)aRect
fraction: (float)aFloat
{
NSImageRep *rep;
NSImageRep *rep = nil;
NS_DURING
{
@ -1049,7 +1049,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
max_rep = nil;
while ((rep = [enumerator nextObject]) != nil)
{
int rep_bps;
int rep_bps = 0;
if ([rep respondsToSelector: @selector(bitsPerPixel)])
rep_bps = [(NSBitmapImageRep *)rep bitsPerPixel];
if (rep_bps > max_bps)

View file

@ -69,6 +69,7 @@
#include <AppKit/NSGraphics.h>
#include <AppKit/GSDisplayServer.h>
#include <AppKit/NSCachedImageRep.h>
#include <AppKit/NSToolbar.h>
BOOL GSViewAcceptsDrag(NSView *v, id<NSDraggingInfo> dragInfo);
@ -3926,7 +3927,7 @@ Code shared with [NSPanel -sendEvent:], remember to update both places.
- (void) setToolbar: (NSToolbar*)toolbar
{
ASSIGN(_toolbar, toolbar);
[_wv addSubview: [toolbar _toolbarView]];
[_wv addSubview: (NSView *)[toolbar _toolbarView]];
[self setViewsNeedDisplay: YES];
}