diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-03-17 22:03:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-03-17 22:03:09 +0100 |
commit | d0732a8120d9cc62d8b6efa4ec48966f890f84b7 (patch) | |
tree | dbcfe3bfaac195410e72cf228e1ecc8f40bcd2d0 /http-backend.c | |
parent | Merge branch 'en/header-cleanup' (diff) | |
parent | help: mark unused parameter in git_unknown_cmd_config() (diff) | |
download | git-d0732a8120d9cc62d8b6efa4ec48966f890f84b7.tar.xz git-d0732a8120d9cc62d8b6efa4ec48966f890f84b7.zip |
Merge branch 'jk/unused-post-2.39-part2'
More work towards -Wunused.
* jk/unused-post-2.39-part2: (21 commits)
help: mark unused parameter in git_unknown_cmd_config()
run_processes_parallel: mark unused callback parameters
userformat_want_item(): mark unused parameter
for_each_commit_graft(): mark unused callback parameter
rewrite_parents(): mark unused callback parameter
fetch-pack: mark unused parameter in callback function
notes: mark unused callback parameters
prio-queue: mark unused parameters in comparison functions
for_each_object: mark unused callback parameters
list-objects: mark unused callback parameters
mark unused parameters in signal handlers
run-command: mark error routine parameters as unused
mark "pointless" data pointers in callbacks
ref-filter: mark unused callback parameters
http-backend: mark unused parameters in virtual functions
http-backend: mark argc/argv unused
object-name: mark unused parameters in disambiguate callbacks
serve: mark unused parameters in virtual functions
serve: use repository pointer to get config
ls-refs: drop config caching
...
Diffstat (limited to 'http-backend.c')
-rw-r--r-- | http-backend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/http-backend.c b/http-backend.c index 45290031e0..9cfc6f2541 100644 --- a/http-backend.c +++ b/http-backend.c @@ -526,7 +526,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; @@ -580,7 +580,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; @@ -590,7 +590,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; @@ -738,7 +738,7 @@ static int bad_request(struct strbuf *hdr, const struct service_cmd *c) return 0; } -int cmd_main(int argc, const char **argv) +int cmd_main(int argc UNUSED, const char **argv UNUSED) { char *method = getenv("REQUEST_METHOD"); const char *proto_header; |