summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2015-10-21 12:09:29 +0200
committerVicent Marti <tanoku@gmail.com>2015-10-21 12:09:29 +0200
commitbbe1957b8c75760c81ce04c7edf6d203513b39f8 (patch)
tree1d90ef8d2b4174b686f4fdce9b9036f873040727
parent128e94bbbb1f1af539be7fb2844e261bfdb28fed (diff)
downloadlibgit2-vmg/crud.tar.gz
tests: Fix warningsvmg/crud
-rw-r--r--tests/diff/workdir.c2
-rw-r--r--tests/revwalk/basic.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/diff/workdir.c b/tests/diff/workdir.c
index 89f9483a6..dac32453b 100644
--- a/tests/diff/workdir.c
+++ b/tests/diff/workdir.c
@@ -2080,7 +2080,7 @@ void test_diff_workdir__to_index_pathlist(void)
cl_git_pass(git_repository_index(&index, g_repo));
opts.flags = GIT_DIFF_INCLUDE_IGNORED;
- opts.pathspec.strings = pathlist.contents;
+ opts.pathspec.strings = (char **)pathlist.contents;
opts.pathspec.count = pathlist.length;
cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, &opts));
diff --git a/tests/revwalk/basic.c b/tests/revwalk/basic.c
index d8236ce72..5ed7da4eb 100644
--- a/tests/revwalk/basic.c
+++ b/tests/revwalk/basic.c
@@ -456,7 +456,8 @@ void test_revwalk_basic__big_timestamp(void)
cl_git_pass(git_signature_new(&sig, "Joe", "joe@example.com", 2399662595, 0));
cl_git_pass(git_commit_tree(&tree, tip));
- cl_git_pass(git_commit_create(&id, _repo, "HEAD", sig, sig, NULL, "some message", tree, 1, &tip));
+ cl_git_pass(git_commit_create(&id, _repo, "HEAD", sig, sig, NULL, "some message", tree, 1,
+ (const git_commit **)&tip));
cl_git_pass(git_revwalk_push_head(_walk));