Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-26 05:42:04 +0300
committerJunio C Hamano <gitster@pobox.com>2022-12-26 05:42:05 +0300
commit179547932fb8484a5ab532ef1b56ed8b01946ab5 (patch)
tree3970dc42db5735f61611a5c3bd9f0f1d60e0c7a4 /builtin/reset.c
parentc099531b001146662263869f7092d8598792dc27 (diff)
parentc25d9e529d531adf0697e0c09ba292227c835164 (diff)
Merge branch 'jk/unused-post-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 'builtin/reset.c')
-rw-r--r--builtin/reset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index dbf6fdfaf0..fea20a9ba0 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -133,7 +133,8 @@ static void print_new_head_line(struct commit *commit)
}
static void update_index_from_diff(struct diff_queue_struct *q,
- struct diff_options *opt, void *data)
+ struct diff_options *opt UNUSED,
+ void *data)
{
int i;
int intent_to_add = *(int *)data;