summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-03-26 12:33:37 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2014-03-26 12:33:37 -0500
commit2b848e47c1491fe0b6e987400b1a466c0f18861a (patch)
treea30e2845e5688050824244d673396699640d7b90
parentdc7efa1aef2d3694e7a1955d746d26013402a21d (diff)
downloadlibgit2-2b848e47c1491fe0b6e987400b1a466c0f18861a.tar.gz
Decorate unused params as unused in revwalk::hidecb tests
-rw-r--r--tests/revwalk/hidecb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/revwalk/hidecb.c b/tests/revwalk/hidecb.c
index c13a17747..26ff183fa 100644
--- a/tests/revwalk/hidecb.c
+++ b/tests/revwalk/hidecb.c
@@ -48,18 +48,27 @@ void test_revwalk_hidecb__cleanup(void)
/* Hide all commits */
static int hide_every_commit_cb(const git_oid *commit_id, void *data)
{
+ GIT_UNUSED(commit_id);
+ GIT_UNUSED(data);
+
return 1;
}
/* Do not hide anything */
static int hide_none_cb(const git_oid *commit_id, void *data)
{
+ GIT_UNUSED(commit_id);
+ GIT_UNUSED(data);
+
return 0;
}
/* Hide some commits */
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]))
return 1;
else