diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-03-23 15:44:52 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-03-23 15:44:52 +0200 |
commit | c0ffe518539073cac6b54249fa11d380ba85049c (patch) | |
tree | 4b216f7086a71c38637cea004fc3244dc8e66325 /include/git2 | |
parent | f0d08b7cec782634e550ad0cd52a705b2c87244c (diff) | |
download | libgit2-c0ffe518539073cac6b54249fa11d380ba85049c.tar.gz |
Do not return on `void` helper methods
MSVC doesn't swallow that.
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/blob.h | 2 | ||||
-rw-r--r-- | include/git2/commit.h | 2 | ||||
-rw-r--r-- | include/git2/tag.h | 2 | ||||
-rw-r--r-- | include/git2/tree.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/blob.h b/include/git2/blob.h index c38a52f65..0e05d6f89 100644 --- a/include/git2/blob.h +++ b/include/git2/blob.h @@ -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) { - return git_object_close((git_object *) blob); + git_object_close((git_object *) blob); } diff --git a/include/git2/commit.h b/include/git2/commit.h index d497324c6..c09b34843 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -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) { - return git_object_close((git_object *) commit); + git_object_close((git_object *) commit); } /** diff --git a/include/git2/tag.h b/include/git2/tag.h index 845b20516..ee92cd5c2 100644 --- a/include/git2/tag.h +++ b/include/git2/tag.h @@ -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) { - return git_object_close((git_object *) tag); + git_object_close((git_object *) tag); } diff --git a/include/git2/tree.h b/include/git2/tree.h index cb959a790..164aec9e2 100644 --- a/include/git2/tree.h +++ b/include/git2/tree.h @@ -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) { - return git_object_close((git_object *) tree); + git_object_close((git_object *) tree); } |