diff options
author | Jeff King <peff@peff.net> | 2023-08-30 01:45:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-30 02:56:26 +0200 |
commit | ccf759cdb7e11e9fcfcbad02685472ce2c7a7d9a (patch) | |
tree | b84b64fc0879e04403c6dfd3cf0beb5e79833b05 /builtin/fetch.c | |
parent | credential: mark unused parameter in urlmatch callback (diff) | |
download | git-ccf759cdb7e11e9fcfcbad02685472ce2c7a7d9a.tar.xz git-ccf759cdb7e11e9fcfcbad02685472ce2c7a7d9a.zip |
fetch: mark unused parameter in ref_transaction callback
Since this callback is just trying to collect the set of queued tag
updates, there is no need for it to look at old_oid at all. Mark it as
unused to appease -Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index eed4a7cdb6..8f93529505 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -308,7 +308,7 @@ static void clear_item(struct refname_hash_entry *item) static void add_already_queued_tags(const char *refname, - const struct object_id *old_oid, + const struct object_id *old_oid UNUSED, const struct object_id *new_oid, void *cb_data) { |