Skip to content

Commit 9e3e272

Browse files
committed
Fix issues reported by Xcode's build and analyze
Using the LLVM GCC 4.2 compiler.
1 parent 28f4c49 commit 9e3e272

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DBPrefsWindowController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ - (void)animationDidEnd:(NSAnimation *)animation
370370
NSEnumerator *subviewsEnum = [[contentSubview subviews] reverseObjectEnumerator];
371371

372372
// This is our visible view. Just get past it.
373-
subview = [subviewsEnum nextObject];
373+
[subviewsEnum nextObject];
374374

375375
// Remove everything else. There should be just one, but
376376
// if the user does a lot of fast clicking, we might have

PBGitRevisionCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ - (void) drawRefsInRect: (NSRect *)refRect
208208
{
209209
[[NSColor blackColor] setStroke];
210210

211-
NSRect lastRect;
211+
NSRect lastRect = NSMakeRect(0, 0, 0, 0);
212212
int index = 0;
213213
for (NSValue *rectValue in [self rectsForRefsinRect:*refRect])
214214
{

0 commit comments

Comments
 (0)