From: Junio C Hamano Date: Wed, 14 Sep 2022 19:56:38 +0000 (-0700) Subject: Merge branch 'jk/unused-annotation' X-Git-Tag: v2.38.0-rc0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6b42ec0c6e2ef492b0ed6d1f1123dc7e724154e;p=thirdparty%2Fgit.git Merge branch 'jk/unused-annotation' Annotate function parameters that are not used (but cannot be removed for structural reasons), to prepare us to later compile with -Wunused warning turned on. * jk/unused-annotation: is_path_owned_by_current_uid(): mark "report" parameter as unused run-command: mark unused async callback parameters mark unused read_tree_recursive() callback parameters hashmap: mark unused callback parameters config: mark unused callback parameters streaming: mark unused virtual method parameters transport: mark bundle transport_options as unused refs: mark unused virtual method parameters refs: mark unused reflog callback parameters refs: mark unused each_ref_fn parameters git-compat-util: add UNUSED macro --- a6b42ec0c6e2ef492b0ed6d1f1123dc7e724154e diff --cc log-tree.c index 3e8c70ddcf,114bd80365..6b93870279 --- a/log-tree.c +++ b/log-tree.c @@@ -135,9 -135,9 +135,10 @@@ static int ref_filter_match(const char } static int add_ref_decoration(const char *refname, const struct object_id *oid, - int flags, void *cb_data) + int UNUSED(flags), + void *cb_data) { + int i; struct object *obj; enum object_type objtype; enum decoration_type deco_type = DECORATION_NONE;