Skip to content

more -Wunused-parameter fixes/annotations

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ls-refs: use repository parameter to iterate refsls-refs.c ref-filter.c refs.c +1 more+15 -100 replies
2/9blob: drop unused parts of parse_blob_buffer()blob.c blob.h object.c+4 -70 replies
3/9list-objects: drop process_gitlink() functionlist-objects.c+1 -320 replies
4/9ws: drop unused parameter from ws_blank_line()apply.c cache.h diff.c +1 more+9 -100 replies
5/9xdiff: drop unused parameter in def_ff()xdiff/xemit.c+2 -20 replies
6/9xdiff: mark unused parameter in xdl_call_hunk_func()xdiff/xdiffi.c+1 -10 replies
7/9diff: mark unused parameters in callbacksadd-interactive.c builtin/add.c builtin/fast-export.c +12 more+41 -300 replies
8/9list-objects-filter: mark unused parameters in virtual functionslist-objects-filter.c+15 -150 replies
9/9userdiff: mark unused parameter in internal callbackuserdiff.c+2 -10 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/9] more -Wunused-parameter fixes/annotations

This was supposed to just be annotations, but after staring at a few of the cases, I think we're better off removing the unused parameters. I've floated those ones up to the top of the series.

[1/9]: ls-refs: use repository parameter to iterate refs [2/9]: blob: drop unused parts of parse_blob_buffer() [3/9]: list-objects: drop process_gitlink() function
[4/9]: ws: drop unused parameter from ws_blank_line() [5/9]: xdiff: drop unused parameter in def_ff()
[6/9]: xdiff: mark unused parameter in xdl_call_hunk_func() [7/9]: diff: mark unused parameters in callbacks
[8/9]: list-objects-filter: mark unused parameters in virtual functions [9/9]: userdiff: mark unused parameter in internal callback

 add-interactive.c           |  2 +-
 apply.c                     |  4 ++--
 blob.c                      |  3 +--
 blob.h                      |  3 +--
 builtin/add.c               |  2 +-
 builtin/fast-export.c       |  2 +-
 builtin/merge-tree.c        |  2 +-
 builtin/merge.c             |  2 +-
 builtin/rerere.c            |  2 +-
 builtin/reset.c             |  3 ++-
 builtin/submodule--helper.c |  2 +-
 cache.h                     |  2 +-
 combine-diff.c              |  2 +-
 diff-lib.c                  |  2 +-
 diff.c                      | 18 +++++++++---------
 list-objects-filter.c       | 30 +++++++++++++++---------------
 list-objects.c              | 33 +--------------------------------
 ls-refs.c                   |  5 +++--
 object.c                    |  5 ++---
 range-diff.c                | 12 ++++++++----
 ref-filter.c                |  5 +++--
 refs.c                      |  9 +++++----
 refs.h                      |  6 ++++--
 revision.c                  | 25 +++++++++++++++----------
 submodule.c                 |  2 +-
 userdiff.c                  |  3 ++-
 ws.c                        |  2 +-
 wt-status.c                 |  4 ++--
 xdiff/xdiffi.c              |  2 +-
 xdiff/xemit.c               |  4 ++--
 30 files changed, 90 insertions(+), 108 deletions(-)

-Peff