]> git.99rst.org Git - git.git/commit
notes: mark unused callback parameters
authorJeff King <redacted>
Fri, 24 Feb 2023 06:39:31 +0000 (01:39 -0500)
committerJunio C Hamano <redacted>
Fri, 24 Feb 2023 17:13:32 +0000 (09:13 -0800)
commit3c50c88f426dddd6c4cb1c1ae847a1eddd5eafee
tree83c6d8d389894065f3377d71a39df7e56b1cbc3c
parent1758712248ab134a99cf73dcb62c115d955697d8
notes: mark unused callback parameters

for_each_note() requires a callback, but not all callbacks need all of
the parameters. Likewise, init_notes() takes a callback to implement the
"combine" strategy, but the "ignore" variant obviously doesn't look at
its arguments at all. Mark unused parameters as appropriate to silence
compiler warnings.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/notes.c
notes.c
git clone https://git.99rst.org/PROJECT