summaryrefslogtreecommitdiff
path: root/tests-clar/stash
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-10-30 18:50:59 +0100
committerMichael Schubert <schu@schu.io>2012-10-30 18:50:59 +0100
commit6cfbbf7e3205e902bd94bf16743127c705e3e588 (patch)
tree64eee941c0925957dd5a63a98a1725c943f09c0f /tests-clar/stash
parent81eecc342b3580e9b05e501c8ee75c7e2e0dca1a (diff)
downloadlibgit2-6cfbbf7e3205e902bd94bf16743127c705e3e588.tar.gz
Fix a couple of warnings
Diffstat (limited to 'tests-clar/stash')
-rw-r--r--tests-clar/stash/foreach.c5
-rw-r--r--tests-clar/stash/stash_helpers.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/tests-clar/stash/foreach.c b/tests-clar/stash/foreach.c
index 808650786..818d906e7 100644
--- a/tests-clar/stash/foreach.c
+++ b/tests-clar/stash/foreach.c
@@ -39,10 +39,11 @@ static int callback_cb(
const git_oid *stash_oid,
void *payload)
{
- int i = 0;
- bool found = false;
struct callback_data *data = (struct callback_data *)payload;
+ GIT_UNUSED(index);
+ GIT_UNUSED(message);
+
cl_assert_equal_i(0, git_oid_streq(stash_oid, data->oids[data->invokes++]));
return 0;
diff --git a/tests-clar/stash/stash_helpers.c b/tests-clar/stash/stash_helpers.c
index f646ef28b..35017cec6 100644
--- a/tests-clar/stash/stash_helpers.c
+++ b/tests-clar/stash/stash_helpers.c
@@ -1,5 +1,6 @@
#include "clar_libgit2.h"
#include "fileops.h"
+#include "stash_helpers.h"
void commit_staged_files(
git_oid *commit_oid,