diff --git a/Core/Source/DTZipArchive/DTZipArchiveGZip.m b/Core/Source/DTZipArchive/DTZipArchiveGZip.m index 71115bac..85dec983 100644 --- a/Core/Source/DTZipArchive/DTZipArchiveGZip.m +++ b/Core/Source/DTZipArchive/DTZipArchiveGZip.m @@ -244,8 +244,11 @@ - (NSData *)uncompressZipArchiveNode:(DTZipArchiveNode *)node withError:(NSError { if (![self.nodes containsObject:node]) { - NSDictionary *userInfo = @{NSLocalizedDescriptionKey : @"Invalid node specified, cannot uncompress GZip file."}; - *error = [[NSError alloc] initWithDomain:DTZipArchiveErrorDomain code:7 userInfo:userInfo]; + if (error) + { + NSDictionary *userInfo = @{NSLocalizedDescriptionKey : @"Invalid node specified, cannot uncompress GZip file."}; + *error = [[NSError alloc] initWithDomain:DTZipArchiveErrorDomain code:7 userInfo:userInfo]; + } return nil; } diff --git a/Core/Source/iOS/DTProgressHUD/DTProgressHUD.m b/Core/Source/iOS/DTProgressHUD/DTProgressHUD.m index 5ffe67d7..6d5017b2 100644 --- a/Core/Source/iOS/DTProgressHUD/DTProgressHUD.m +++ b/Core/Source/iOS/DTProgressHUD/DTProgressHUD.m @@ -276,7 +276,6 @@ - (void)_showAnimation [collision addBoundaryWithIdentifier:@"barrier1" fromPoint:leftPoint toPoint:rightPoint]; // calculate points for barrier - height = self.center.y + PROGRESS_HEIGHT / 2; leftPoint = CGPointMake(0, 0); rightPoint = CGPointMake(self.center.x - PROGRESS_WIDTH / 2 - offset + BARRIER_LENGTH, 0); [collision addBoundaryWithIdentifier:@"barrier2" fromPoint:leftPoint toPoint:rightPoint]; diff --git a/Core/Source/iOS/DTSidePanel/DTSidePanelController.m b/Core/Source/iOS/DTSidePanel/DTSidePanelController.m index c6ff9ebd..53f40ca4 100644 --- a/Core/Source/iOS/DTSidePanel/DTSidePanelController.m +++ b/Core/Source/iOS/DTSidePanel/DTSidePanelController.m @@ -737,7 +737,7 @@ - (void)handlePan:(UIPanGestureRecognizer *)gesture - (void)presentPanel:(DTSidePanelControllerPanel)panel animated:(BOOL)animated { - CGPoint targetPosition; + CGPoint targetPosition = [self _centerPanelPositionWithLeftPanelOpen]; _panelToPresentAfterLayout = panel; @@ -777,10 +777,10 @@ - (void)presentPanel:(DTSidePanelControllerPanel)panel animated:(BOOL)animated break; } - case DTSidePanelControllerPanelNone: - { - break; - } + case DTSidePanelControllerPanelNone: + { + break; + } } if (animated) diff --git a/Documentation/Change Log-template.markdown b/Documentation/Change Log-template.markdown index d82a8fbf..915c2d48 100644 --- a/Documentation/Change Log-template.markdown +++ b/Documentation/Change Log-template.markdown @@ -7,6 +7,8 @@ This is the history of version updates. - FIXED: Added armv7s to static library targets (iOS) - FIXED: [DTZipArchive] unit test would sometimes fail +- FIXED: Analyzer warnings +- FIXED: Log message of main thread checker would mention incorrect symbol for debugging - ADDED: CocoaPods specs for DTScripting, Debug and Runtime - ADDED: Dynamic framework for iOS8 - REMOVED: Deprecated static framework for iOS