mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 13:12:22 +00:00
Decorate unused params as unused in revwalk::hidecb tests
This commit is contained in:
parent
dc7efa1aef
commit
2b848e47c1
@ -48,18 +48,27 @@ void test_revwalk_hidecb__cleanup(void)
|
|||||||
/* Hide all commits */
|
/* Hide all commits */
|
||||||
static int hide_every_commit_cb(const git_oid *commit_id, void *data)
|
static int hide_every_commit_cb(const git_oid *commit_id, void *data)
|
||||||
{
|
{
|
||||||
|
GIT_UNUSED(commit_id);
|
||||||
|
GIT_UNUSED(data);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do not hide anything */
|
/* Do not hide anything */
|
||||||
static int hide_none_cb(const git_oid *commit_id, void *data)
|
static int hide_none_cb(const git_oid *commit_id, void *data)
|
||||||
{
|
{
|
||||||
|
GIT_UNUSED(commit_id);
|
||||||
|
GIT_UNUSED(data);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide some commits */
|
/* Hide some commits */
|
||||||
static int hide_commit_cb(const git_oid *commit_id, void *data)
|
static int hide_commit_cb(const git_oid *commit_id, void *data)
|
||||||
{
|
{
|
||||||
|
GIT_UNUSED(commit_id);
|
||||||
|
GIT_UNUSED(data);
|
||||||
|
|
||||||
if (0 == git_oid_cmp(commit_id, &commit_ids[5]))
|
if (0 == git_oid_cmp(commit_id, &commit_ids[5]))
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user