Commit c0ffe518 by Vicent Marti

Do not return on `void` helper methods

MSVC doesn't swallow that.
parent f0d08b7c
...@@ -66,7 +66,7 @@ GIT_INLINE(int) git_blob_lookup(git_blob **blob, git_repository *repo, const git ...@@ -66,7 +66,7 @@ GIT_INLINE(int) git_blob_lookup(git_blob **blob, git_repository *repo, const git
GIT_INLINE(void) git_blob_close(git_blob *blob) GIT_INLINE(void) git_blob_close(git_blob *blob)
{ {
return git_object_close((git_object *) blob); git_object_close((git_object *) blob);
} }
......
...@@ -67,7 +67,7 @@ GIT_INLINE(int) git_commit_lookup(git_commit **commit, git_repository *repo, con ...@@ -67,7 +67,7 @@ GIT_INLINE(int) git_commit_lookup(git_commit **commit, git_repository *repo, con
GIT_INLINE(void) git_commit_close(git_commit *commit) GIT_INLINE(void) git_commit_close(git_commit *commit)
{ {
return git_object_close((git_object *) commit); git_object_close((git_object *) commit);
} }
/** /**
......
...@@ -66,7 +66,7 @@ GIT_INLINE(int) git_tag_lookup(git_tag **tag, git_repository *repo, const git_oi ...@@ -66,7 +66,7 @@ GIT_INLINE(int) git_tag_lookup(git_tag **tag, git_repository *repo, const git_oi
GIT_INLINE(void) git_tag_close(git_tag *tag) GIT_INLINE(void) git_tag_close(git_tag *tag)
{ {
return git_object_close((git_object *) tag); git_object_close((git_object *) tag);
} }
......
...@@ -66,7 +66,7 @@ GIT_INLINE(int) git_tree_lookup(git_tree **tree, git_repository *repo, const git ...@@ -66,7 +66,7 @@ GIT_INLINE(int) git_tree_lookup(git_tree **tree, git_repository *repo, const git
GIT_INLINE(void) git_tree_close(git_tree *tree) GIT_INLINE(void) git_tree_close(git_tree *tree)
{ {
return git_object_close((git_object *) tree); git_object_close((git_object *) tree);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment