diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-09-14 21:56:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-14 21:56:39 +0200 |
commit | dd407f1c7c7cce148d7313537494d0bc049ccb0e (patch) | |
tree | 960438c348acf300fca1f9e795b647df2d6f8e18 /builtin/pack-objects.c | |
parent | Merge branch 'jk/unused-annotation' (diff) | |
parent | git-compat-util.h: use "deprecated" for UNUSED variables (diff) | |
download | git-dd407f1c7c7cce148d7313537494d0bc049ccb0e.tar.xz git-dd407f1c7c7cce148d7313537494d0bc049ccb0e.zip |
Merge branch 'ab/unused-annotation'
Undoes 'jk/unused-annotation' topic and redoes it to work around
Coccinelle rules misfiring false positives in unrelated codepaths.
* ab/unused-annotation:
git-compat-util.h: use "deprecated" for UNUSED variables
git-compat-util.h: use "UNUSED", not "UNUSED(var)"
Diffstat (limited to 'builtin/pack-objects.c')
-rw-r--r-- | builtin/pack-objects.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index bf3df7200f..3658c05caf 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -759,8 +759,8 @@ static enum write_one_status write_one(struct hashfile *f, return WRITE_ONE_WRITTEN; } -static int mark_tagged(const char *UNUSED(path), const struct object_id *oid, - int UNUSED(flag), void *UNUSED(cb_data)) +static int mark_tagged(const char *path UNUSED, const struct object_id *oid, + int flag UNUSED, void *cb_data UNUSED) { struct object_id peeled; struct object_entry *entry = packlist_find(&to_pack, oid); @@ -3035,8 +3035,8 @@ static void add_tag_chain(const struct object_id *oid) } } -static int add_ref_tag(const char *UNUSED(tag), const struct object_id *oid, - int UNUSED(flag), void *UNUSED(cb_data)) +static int add_ref_tag(const char *tag UNUSED, const struct object_id *oid, + int flag UNUSED, void *cb_data UNUSED) { struct object_id peeled; @@ -3960,8 +3960,8 @@ static void record_recent_commit(struct commit *commit, void *data) static int mark_bitmap_preferred_tip(const char *refname, const struct object_id *oid, - int UNUSED(flags), - void *UNUSED(data)) + int flags UNUSED, + void *data UNUSED) { struct object_id peeled; struct object *object; |