Skip to content

Commit

Permalink
Static analyzer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunophilipe committed Mar 5, 2021
1 parent a985468 commit dfd4976
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Cakebrew.xcodeproj/project.pbxproj
Expand Up @@ -1052,6 +1052,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE = YES;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
Expand Down Expand Up @@ -1081,6 +1082,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE = YES;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
Expand Down
6 changes: 4 additions & 2 deletions Cakebrew/BPHomebrewInterface.m
Expand Up @@ -300,12 +300,14 @@ - (NSString*)performWrappedBrewCommandWithArguments:(NSArray*)arguments
{
NSString __block *finalOutput = nil;

dispatch_sync(_taskOperationsQueue, ^{
dispatch_queue_t queue = _taskOperationsQueue;

dispatch_sync(queue, ^{
NSMutableString *output = [NSMutableString new];

[self performBrewCommandWithArguments:arguments
wrapsSynchronousRequest:YES
queue:_taskOperationsQueue
queue:queue
dataReturnBlock:^(NSString *partialOutput)
{
[output appendString:partialOutput];
Expand Down
2 changes: 1 addition & 1 deletion Dependencies/PXSourceList

0 comments on commit dfd4976

Please sign in to comment.