diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-02-14 14:15:55 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-14 14:15:55 -0800 |
| commit | 8d404d0d952ed0f09682c9651f82ce7e30eeb819 (patch) | |
| tree | 24c30d713200829766dc3b692e8f4cf7608bdb04 /range-diff.c | |
| parent | Merge branch 'rj/branch-copy-and-rename' into maint-2.39 (diff) | |
| parent | userdiff: mark unused parameter in internal callback (diff) | |
| download | git-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 'range-diff.c')
| -rw-r--r-- | range-diff.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/range-diff.c b/range-diff.c index 8b7d81adc1..8255ab4349 100644 --- a/range-diff.c +++ b/range-diff.c @@ -269,14 +269,18 @@ static void find_exact_matches(struct string_list *a, struct string_list *b) hashmap_clear(&map); } -static int diffsize_consume(void *data, char *line, unsigned long len) +static int diffsize_consume(void *data, + char *line UNUSED, + unsigned long len UNUSED) { (*(int *)data)++; return 0; } -static void diffsize_hunk(void *data, long ob, long on, long nb, long nn, - const char *funcline, long funclen) +static void diffsize_hunk(void *data, + long ob UNUSED, long on UNUSED, + long nb UNUSED, long nn UNUSED, + const char *func UNUSED, long funclen UNUSED) { diffsize_consume(data, NULL, 0); } @@ -461,7 +465,7 @@ static void patch_diff(const char *a, const char *b, diff_flush(diffopt); } -static struct strbuf *output_prefix_cb(struct diff_options *opt, void *data) +static struct strbuf *output_prefix_cb(struct diff_options *opt UNUSED, void *data) { return data; } |
