summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-11-22 15:04:15 +0900
committerJunio C Hamano <gitster@pobox.com>2017-11-22 15:04:15 +0900
commit67d192e2090ffa4ecbfdd771ccd07236644224d2 (patch)
tree92f14049e13b7244781e8e93af20c7b3305ea3b7
parenta82fa292c366cfff4a88b8a2d2697e848317c3d9 (diff)
downloadgit-ph/lazy-load-ref-decoration.tar.gz
-rw-r--r--log-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/log-tree.c b/log-tree.c
index fe970ce804..5f4239cf00 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -84,7 +84,7 @@ void add_name_decoration(enum decoration_type type, const char *name, struct obj
res->next = add_decoration(&name_decoration, obj, res);
}
-static void maybe_load_ref_decorations();
+static void maybe_load_ref_decorations(void);
const struct name_decoration *get_name_decoration(const struct object *obj)
{
maybe_load_ref_decorations();
@@ -155,7 +155,7 @@ void load_ref_decorations(int flags)
decoration_flags = flags;
}
-static void maybe_load_ref_decorations()
+static void maybe_load_ref_decorations(void)
{
if (!decoration_loaded) {
decoration_loaded = 1;