Skip to content

Commit 03e7833

Browse files
tgummerergitster
authored andcommitted
oidset: don't return value from oidset_init
c3a9ad3 ("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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f4371a8 commit 03e7833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oidset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct oidset {
2727

2828
static inline void oidset_init(struct oidset *set, size_t initial_size)
2929
{
30-
return oidmap_init(&set->map, initial_size);
30+
oidmap_init(&set->map, initial_size);
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)