Skip to content

Commit e10e712

Browse files
committed
some changes xcode 9 suggested
1 parent 91e80c5 commit e10e712

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

External/libextobjc/extobjc/EXTScope.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
_Pragma("clang diagnostic pop")
8989

9090
/*** implementation details follow ***/
91-
typedef void (^gt_ext_cleanupBlock_t)();
91+
typedef void (^gt_ext_cleanupBlock_t)(void);
9292

9393
void gt_ext_executeCleanupBlock (__strong gt_ext_cleanupBlock_t *block);
9494

ObjectiveGit/GTRepository+RemoteOperations.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ - (BOOL)pushRefspecs:(NSArray *)refspecs toRemote:(GTRemote *)remote withOptions
266266
};
267267

268268
git_remote_callbacks remote_callbacks = GIT_REMOTE_CALLBACKS_INIT;
269-
remote_callbacks.credentials = (credProvider != nil ? GTCredentialAcquireCallback : NULL),
269+
remote_callbacks.credentials = (credProvider != nil ? GTCredentialAcquireCallback : NULL);
270270
remote_callbacks.push_transfer_progress = GTRemotePushTransferProgressCallback;
271-
remote_callbacks.payload = &connectionInfo,
271+
remote_callbacks.payload = &connectionInfo;
272272

273273
gitError = git_remote_connect(remote.git_remote, GIT_DIRECTION_PUSH, &remote_callbacks, NULL, NULL);
274274
if (gitError != GIT_OK) {

ObjectiveGit/GTRepository.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ - (BOOL)isHEADUnborn {
624624
return (BOOL)git_repository_head_unborn(self.git_repository);
625625
}
626626

627-
- (NSString *)preparedMessageWithError:(NSError **)error {
627+
- (NSString *)preparedMessageWithError:(NSError * __autoreleasing *)error {
628628
void (^setErrorFromCode)(int) = ^(int errorCode) {
629629
if (errorCode == 0 || errorCode == GIT_ENOTFOUND) {
630630
// Not an error.

0 commit comments

Comments
 (0)