summaryrefslogtreecommitdiff
path: root/oidset.h
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2018-01-07 23:04:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-08 23:24:35 (GMT)
commit03e7833f3ab2e72578db3fbcde6b80af323bc818 (patch)
tree45db77c8f16f031fe59629e2709b1a4290007c45 /oidset.h
parentf4371a883fa2d740d6b3cd436f62c9b56f13432e (diff)
downloadgit-03e7833f3ab2e72578db3fbcde6b80af323bc818.zip
git-03e7833f3ab2e72578db3fbcde6b80af323bc818.tar.gz
git-03e7833f3ab2e72578db3fbcde6b80af323bc818.tar.bz2
oidset: don't return value from oidset_init
c3a9ad3117 ("oidset: add iterator methods to oidset", 2017-11-21) introduced a 'oidset_init()' function in oidset.h, which has void as return type, but returns an expression. This makes the solaris compiler fail with: "oidset.h", line 30: void function cannot return value As the return type is void, and even the return type of the expression we're trying to return (oidmap_init) is void just remove the return statement to fix the compiler error. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'oidset.h')
-rw-r--r--oidset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/oidset.h b/oidset.h
index 783abce..40ec5f8 100644
--- a/oidset.h
+++ b/oidset.h
@@ -27,7 +27,7 @@ struct oidset {
static inline void oidset_init(struct oidset *set, size_t initial_size)
{
- return oidmap_init(&set->map, initial_size);
+ oidmap_init(&set->map, initial_size);
}
/**