summaryrefslogtreecommitdiffstats
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-09-14 21:56:39 +0200
committerJunio C Hamano <gitster@pobox.com>2022-09-14 21:56:39 +0200
commitdd407f1c7c7cce148d7313537494d0bc049ccb0e (patch)
tree960438c348acf300fca1f9e795b647df2d6f8e18 /builtin/commit-graph.c
parentMerge branch 'jk/unused-annotation' (diff)
parentgit-compat-util.h: use "deprecated" for UNUSED variables (diff)
downloadgit-dd407f1c7c7cce148d7313537494d0bc049ccb0e.tar.xz
git-dd407f1c7c7cce148d7313537494d0bc049ccb0e.zip
Merge branch 'ab/unused-annotation'
Undoes 'jk/unused-annotation' topic and redoes it to work around Coccinelle rules misfiring false positives in unrelated codepaths. * ab/unused-annotation: git-compat-util.h: use "deprecated" for UNUSED variables git-compat-util.h: use "UNUSED", not "UNUSED(var)"
Diffstat (limited to 'builtin/commit-graph.c')
-rw-r--r--builtin/commit-graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit-graph.c b/builtin/commit-graph.c
index 6e3baff6d5..51557fe786 100644
--- a/builtin/commit-graph.c
+++ b/builtin/commit-graph.c
@@ -179,7 +179,7 @@ static int write_option_max_new_filters(const struct option *opt,
}
static int git_commit_graph_write_config(const char *var, const char *value,
- void *UNUSED(cb))
+ void *cb UNUSED)
{
if (!strcmp(var, "commitgraph.maxnewfilters"))
write_opts.max_new_filters = git_config_int(var, value);