Skip to content

more -Wunused-parameter annotations

Jeff King git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14test-ref-store: drop unimplemented reflog-expire commandt/helper/test-ref-store.c+0 -60 replies
2/14do_for_each_ref_helper(): mark unused repository parameterrefs.c+1 -10 replies
3/14http: mark unused parameters in curl callbackshttp.c+6 -30 replies
4/14http-push: mark unused parameter in xml callbackhttp-push.c+1 -10 replies
5/14am: mark unused keep_cr parametersbuiltin/am.c+2 -20 replies
6/14count-objects: mark unused parameter in alternates callbackbuiltin/count-objects.c+1 -10 replies
7/14revisions: drop unused "opt" parameter in "tweak" callbacksbuiltin/diff-tree.c builtin/log.c revision.c +1 more+5 -70 replies
8/14fsck: mark unused parameters in various fsck callbacksbuiltin/fsck.c builtin/index-pack.c builtin/mktag.c +3 more+20 -180 replies
9/14merge-tree: mark unused parameter in traverse callbackbuiltin/merge-tree.c+3 -10 replies
10/14replace: mark unused parameter in ref callbackbuiltin/replace.c+1 -10 replies
11/14replace: mark unused parameter in each_mergetag_fn callbackbuiltin/replace.c+1 -10 replies
12/14rev-parse: mark unused parameter in for_each_abbrev callbackbuiltin/rev-parse.c+1 -10 replies
13/14tag: mark unused parameters in each_tag_name_fn callbacksbuiltin/tag.c+2 -20 replies
14/14t/helper: mark unused callback void data parameterst/helper/test-dump-split-index.c t/helper/test-oid-array.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/14] more -Wunused-parameter annotations

Here's another set of patches to silence -Wunused-parameter warnings. With the exception of the first patch, these are all just adding annotations (though I tried to document in each one any digging I did on "this isn't a bug that we're not using it, right?").

So I don't think these should be controversial. But I wanted to mention that I'll be offline for a month starting July 5th. So if there is any substantive review after that, I'll be rather slow to respond. :)

[01/14]: test-ref-store: drop unimplemented reflog-expire command [02/14]: do_for_each_ref_helper(): mark unused repository parameter [03/14]: http: mark unused parameters in curl callbacks [04/14]: http-push: mark unused parameter in xml callback [05/14]: am: mark unused keep_cr parameters
[06/14]: count-objects: mark unused parameter in alternates callback [07/14]: revisions: drop unused "opt" parameter in "tweak" callbacks [08/14]: fsck: mark unused parameters in various fsck callbacks [09/14]: merge-tree: mark unused parameter in traverse callback [10/14]: replace: mark unused parameter in ref callback [11/14]: replace: mark unused parameter in each_mergetag_fn callback [12/14]: rev-parse: mark unused parameter in for_each_abbrev callback [13/14]: tag: mark unused parameters in each_tag_name_fn callbacks [14/14]: t/helper: mark unused callback void data parameters

 builtin/am.c                     |  4 ++--
 builtin/count-objects.c          |  2 +-
 builtin/diff-tree.c              |  2 +-
 builtin/fsck.c                   | 10 +++++-----
 builtin/index-pack.c             |  3 ++-
 builtin/log.c                    |  6 ++----
 builtin/merge-tree.c             |  4 +++-
 builtin/mktag.c                  |  8 ++++----
 builtin/replace.c                |  4 ++--
 builtin/rev-parse.c              |  2 +-
 builtin/tag.c                    |  4 ++--
 builtin/unpack-objects.c         |  3 ++-
 fsck.c                           |  4 ++--
 http-push.c                      |  2 +-
 http.c                           |  9 ++++++---
 object-file.c                    | 10 +++++-----
 refs.c                           |  2 +-
 revision.c                       |  2 +-
 revision.h                       |  2 +-
 t/helper/test-dump-split-index.c |  2 +-
 t/helper/test-oid-array.c        |  2 +-
 t/helper/test-ref-store.c        |  6 ------
 22 files changed, 46 insertions(+), 47 deletions(-)

-Peff