Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbe1957

Browse files
committed
tests: Fix warnings
1 parent 128e94b commit bbe1957

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/diff/workdir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ void test_diff_workdir__to_index_pathlist(void)
20802080
cl_git_pass(git_repository_index(&index, g_repo));
20812081

20822082
opts.flags = GIT_DIFF_INCLUDE_IGNORED;
2083-
opts.pathspec.strings = pathlist.contents;
2083+
opts.pathspec.strings = (char **)pathlist.contents;
20842084
opts.pathspec.count = pathlist.length;
20852085

20862086
cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, index, &opts));

tests/revwalk/basic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ void test_revwalk_basic__big_timestamp(void)
456456
cl_git_pass(git_signature_new(&sig, "Joe", "[email protected]", 2399662595, 0));
457457
cl_git_pass(git_commit_tree(&tree, tip));
458458

459-
cl_git_pass(git_commit_create(&id, _repo, "HEAD", sig, sig, NULL, "some message", tree, 1, &tip));
459+
cl_git_pass(git_commit_create(&id, _repo, "HEAD", sig, sig, NULL, "some message", tree, 1,
460+
(const git_commit **)&tip));
460461

461462
cl_git_pass(git_revwalk_push_head(_walk));
462463

0 commit comments

Comments
 (0)