Skip to content

Commit

Permalink
Fixing analyzer warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiehanson committed Nov 14, 2011
1 parent 54551c8 commit a897a81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Benchmarking/PerformanceTesting.m
Expand Up @@ -316,6 +316,18 @@ + (NSString *)csvResults

+ (void)startPerformanceTests
{
#if GCD_MAYBE_AVAILABLE
NSLog(@"GCD_MAYBE_AVAILABLE");
#endif
#if GCD_MAYBE_UNAVAILABLE
NSLog(@"GCD_MAYBE_UNAVAILABLE");
#endif

if (IS_GCD_AVAILABLE)
NSLog(@"GCD Available");
else
NSLog(@"GCD Not Available");

BOOL runBase = NO;
BOOL runSuite1 = YES;
BOOL runSuite2 = YES;
Expand Down
4 changes: 2 additions & 2 deletions Lumberjack/DDFileLogger.m
Expand Up @@ -394,12 +394,12 @@ - (NSString *)generateShortUUID
CFUUIDRef uuid = CFUUIDCreate(NULL);

CFStringRef fullStr = CFUUIDCreateString(NULL, uuid);
CFStringRef shortStr = CFStringCreateWithSubstring(NULL, fullStr, CFRangeMake(0, 6));
NSString *result = (__bridge_transfer NSString *)CFStringCreateWithSubstring(NULL, fullStr, CFRangeMake(0, 6));

CFRelease(fullStr);
CFRelease(uuid);

return (__bridge_transfer NSString *)shortStr;
return result;
}

/**
Expand Down

0 comments on commit a897a81

Please sign in to comment.