summaryrefslogtreecommitdiffstats
path: root/wt-status.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-12-13 12:13:48 +0100
committerJunio C Hamano <gitster@pobox.com>2022-12-13 14:16:23 +0100
commit61bdc7c5d8b1dedc5f9c3af45c5738d14136ae90 (patch)
treee6abfd77ea8438e5f37e76f46b54b4a0bbfb1458 /wt-status.c
parentxdiff: mark unused parameter in xdl_call_hunk_func() (diff)
downloadgit-61bdc7c5d8b1dedc5f9c3af45c5738d14136ae90.tar.xz
git-61bdc7c5d8b1dedc5f9c3af45c5738d14136ae90.zip
diff: mark unused parameters in callbacks
The diff code provides a format_callback interface, but not every callback needs each parameter (e.g., the "opt" and "data" parameters are frequently left unused). Likewise for the output_prefix callback, the low-level change/add_remove interfaces, the callbacks used by xdi_diff(), etc. Mark unused arguments in the callback implementations to quiet -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wt-status.c b/wt-status.c
index 5813174896..76e37a8088 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -438,7 +438,7 @@ static char short_submodule_status(struct wt_status_change_data *d)
}
static void wt_status_collect_changed_cb(struct diff_queue_struct *q,
- struct diff_options *options,
+ struct diff_options *options UNUSED,
void *data)
{
struct wt_status *s = data;
@@ -525,7 +525,7 @@ static int unmerged_mask(struct index_state *istate, const char *path)
}
static void wt_status_collect_updated_cb(struct diff_queue_struct *q,
- struct diff_options *options,
+ struct diff_options *options UNUSED,
void *data)
{
struct wt_status *s = data;