mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
tests: Fix warnings
This commit is contained in:
parent
128e94bbbb
commit
bbe1957b8c
@ -2080,7 +2080,7 @@ void test_diff_workdir__to_index_pathlist(void)
|
|||||||
cl_git_pass(git_repository_index(&index, g_repo));
|
cl_git_pass(git_repository_index(&index, g_repo));
|
||||||
|
|
||||||
opts.flags = GIT_DIFF_INCLUDE_IGNORED;
|
opts.flags = GIT_DIFF_INCLUDE_IGNORED;
|
||||||
opts.pathspec.strings = pathlist.contents;
|
opts.pathspec.strings = (char **)pathlist.contents;
|
||||||
opts.pathspec.count = pathlist.length;
|
opts.pathspec.count = pathlist.length;
|
||||||
|
|
||||||
cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, &opts));
|
cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, &opts));
|
||||||
|
@ -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_signature_new(&sig, "Joe", "joe@example.com", 2399662595, 0));
|
||||||
cl_git_pass(git_commit_tree(&tree, tip));
|
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));
|
cl_git_pass(git_revwalk_push_head(_walk));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user