Skip to content

Commit dd3c8a7

Browse files
carenasgitster
authored andcommitted
object-store: avoid extra ';' from KHASH_INIT
cf2dc1c (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1482594 commit dd3c8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object-store.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct object_directory {
3434
};
3535

3636
KHASH_INIT(odb_path_map, const char * /* key: odb_path */,
37-
struct object_directory *, 1, fspathhash, fspatheq);
37+
struct object_directory *, 1, fspathhash, fspatheq)
3838

3939
void prepare_alt_odb(struct repository *r);
4040
char *compute_alternate_path(const char *path, struct strbuf *err);

0 commit comments

Comments
 (0)