object-store: avoid extra ';' from KHASH_INIT

cf2dc1c238 (speed up alt_odb_usable() with many alternates, 2021-07-07) introduces a KHASH_INIT invocation with a trailing ';', which while commonly expected will trigger warnings with pedantic on both clang[-Wextra-semi] and gcc[-Wpedantic], because that macro has already a semicolon and is meant to be invoked without one. while fixing the macro would be a worthy solution (specially considering this is a common recurring problem), remove the extra ';' for now to minimize churn. Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Carlo Marcelo Arenas Belón committed Aug 8, 2021 at 18:38 UTC dd3c8a72a2eaecf0c752a37e1f4ba4de59818e93
1 file changed +1 -1
object-store.h
+1 -1
@@ -34,7 +34,7 @@ struct object_directory {
34 };
35
36 KHASH_INIT(odb_path_map, const char * /* key: odb_path */,
37 - struct object_directory *, 1, fspathhash, fspatheq);
37 + struct object_directory *, 1, fspathhash, fspatheq)
38
39 void prepare_alt_odb(struct repository *r);
40 char *compute_alternate_path(const char *path, struct strbuf *err);