http-backend: mark unused parameters in virtual functions
The http-backend dispatches requests via a table of virtual functions. Some of the functions ignore their "arg" parameter, because it's implicit in the function (e.g., get_info_refs knows that it is dispatched only for a request to "/info/refs"). Mark these unused parameters to silence -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
77ef8b0e1e
commit
2be1506a78
@ -524,7 +524,7 @@ static int show_text_ref(const char *name, const struct object_id *oid,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void get_info_refs(struct strbuf *hdr, char *arg)
|
||||
static void get_info_refs(struct strbuf *hdr, char *arg UNUSED)
|
||||
{
|
||||
const char *service_name = get_parameter("service");
|
||||
struct strbuf buf = STRBUF_INIT;
|
||||
@ -578,7 +578,7 @@ static int show_head_ref(const char *refname, const struct object_id *oid,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void get_head(struct strbuf *hdr, char *arg)
|
||||
static void get_head(struct strbuf *hdr, char *arg UNUSED)
|
||||
{
|
||||
struct strbuf buf = STRBUF_INIT;
|
||||
|
||||
@ -588,7 +588,7 @@ static void get_head(struct strbuf *hdr, char *arg)
|
||||
strbuf_release(&buf);
|
||||
}
|
||||
|
||||
static void get_info_packs(struct strbuf *hdr, char *arg)
|
||||
static void get_info_packs(struct strbuf *hdr, char *arg UNUSED)
|
||||
{
|
||||
size_t objdirlen = strlen(get_object_directory());
|
||||
struct strbuf buf = STRBUF_INIT;
|
||||
|
Loading…
Reference in New Issue
Block a user