aboutsummaryrefslogtreecommitdiffstats
path: root/diff-lib.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-14 14:15:55 -0800
committerJunio C Hamano <gitster@pobox.com>2023-02-14 14:15:55 -0800
commit8d404d0d952ed0f09682c9651f82ce7e30eeb819 (patch)
tree24c30d713200829766dc3b692e8f4cf7608bdb04 /diff-lib.c
parentMerge branch 'rj/branch-copy-and-rename' into maint-2.39 (diff)
parentuserdiff: mark unused parameter in internal callback (diff)
downloadgit-8d404d0d952ed0f09682c9651f82ce7e30eeb819.tar.gz
git-8d404d0d952ed0f09682c9651f82ce7e30eeb819.zip
Merge branch 'jk/unused-post-2.39' into maint-2.39
Code clean-up around unused function parameters. * jk/unused-post-2.39: userdiff: mark unused parameter in internal callback list-objects-filter: mark unused parameters in virtual functions diff: mark unused parameters in callbacks xdiff: mark unused parameter in xdl_call_hunk_func() xdiff: drop unused parameter in def_ff() ws: drop unused parameter from ws_blank_line() list-objects: drop process_gitlink() function blob: drop unused parts of parse_blob_buffer() ls-refs: use repository parameter to iterate refs
Diffstat (limited to 'diff-lib.c')
-rw-r--r--diff-lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-lib.c b/diff-lib.c
index 2edea41a23..dec040c366 100644
--- a/diff-lib.c
+++ b/diff-lib.c
@@ -673,7 +673,7 @@ int index_differs_from(struct repository *r,
return (has_changes != 0);
}
-static struct strbuf *idiff_prefix_cb(struct diff_options *opt, void *data)
+static struct strbuf *idiff_prefix_cb(struct diff_options *opt UNUSED, void *data)
{
return data;
}