From: Johannes Schindelin <johannes.schindelin@xxxxxx> A `void` function cannot return a value. Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx> --- reftable/record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reftable/record.c b/reftable/record.c index b0f18f26c55..5f48be1639e 100644 --- a/reftable/record.c +++ b/reftable/record.c @@ -1005,7 +1005,7 @@ int record_decode(struct record rec, struct slice key, byte extra, void record_clear(struct record rec) { - return rec.ops->clear(rec.data); + rec.ops->clear(rec.data); } bool record_is_deletion(struct record rec) -- gitgitgadget