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>

Thomas Gummerer committed Jan 7, 2018 at 23:04 UTC 03e7833f3ab2e72578db3fbcde6b80af323bc818
1 file changed +1 -1
oidset.h
+1 -1
@@ -27,7 +27,7 @@ struct oidset {
27
28 static inline void oidset_init(struct oidset *set, size_t initial_size)
29 {
30 - return oidmap_init(&set->map, initial_size);
30 + oidmap_init(&set->map, initial_size);
31 }
32
33 /**