mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:50:37 +00:00
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:
parent
cb07412522
commit
f454a9a289
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue