Commit 72629a10 by Ben Straub

Clean up GCC build warnings

parent 22bcf86c
...@@ -45,8 +45,7 @@ void test_object_tree_attributes__treebuilder_reject_invalid_filemode(void) ...@@ -45,8 +45,7 @@ void test_object_tree_attributes__treebuilder_reject_invalid_filemode(void)
{ {
git_repository *repo; git_repository *repo;
git_treebuilder *builder; git_treebuilder *builder;
git_oid bid, tid; git_oid bid;
git_tree *tree;
const git_tree_entry *entry; const git_tree_entry *entry;
repo = cl_git_sandbox_init("deprecated-mode.git"); repo = cl_git_sandbox_init("deprecated-mode.git");
......
...@@ -65,7 +65,7 @@ static void assert_merge_and_or_remote_key_missing(git_repository *repository, c ...@@ -65,7 +65,7 @@ static void assert_merge_and_or_remote_key_missing(git_repository *repository, c
{ {
git_reference *branch; git_reference *branch;
cl_assert_equal_i(GIT_OBJ_COMMIT, git_object_type(target)); cl_assert_equal_i(GIT_OBJ_COMMIT, git_object_type((git_object*)target));
cl_git_pass(git_branch_create(&branch, repository, entry_name, (git_commit*)target, 0)); cl_git_pass(git_branch_create(&branch, repository, entry_name, (git_commit*)target, 0));
cl_assert_equal_i(GIT_ENOTFOUND, git_branch_tracking(&tracking, branch)); cl_assert_equal_i(GIT_ENOTFOUND, git_branch_tracking(&tracking, branch));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment