diff options
author | Jeff King <peff@peff.net> | 2022-08-19 12:08:32 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-19 21:18:54 +0200 |
commit | 63e14ee2d69b58eae72e34df81f2cde145427037 (patch) | |
tree | fb936eb4980e58b3618a5535f3cd60f5e98bfc56 /http-backend.c | |
parent | git-compat-util: add UNUSED macro (diff) | |
download | git-63e14ee2d69b58eae72e34df81f2cde145427037.tar.xz git-63e14ee2d69b58eae72e34df81f2cde145427037.zip |
refs: mark unused each_ref_fn parameters
Functions used with for_each_ref(), etc, need to conform to the
each_ref_fn interface. But most of them don't need every parameter;
let's annotate the unused ones to quiet -Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-backend.c')
-rw-r--r-- | http-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http-backend.c b/http-backend.c index 58b83a9f66..20db0ea620 100644 --- a/http-backend.c +++ b/http-backend.c @@ -505,7 +505,7 @@ static void run_service(const char **argv, int buffer_input) } static int show_text_ref(const char *name, const struct object_id *oid, - int flag, void *cb_data) + int UNUSED(flag), void *cb_data) { const char *name_nons = strip_namespace(name); struct strbuf *buf = cb_data; |