Clean up GCC build warnings

This commit is contained in:
Ben Straub 2012-12-10 10:05:31 -08:00
parent 22bcf86c5a
commit 72629a10e3
2 changed files with 2 additions and 3 deletions

View File

@ -45,8 +45,7 @@ void test_object_tree_attributes__treebuilder_reject_invalid_filemode(void)
{
git_repository *repo;
git_treebuilder *builder;
git_oid bid, tid;
git_tree *tree;
git_oid bid;
const git_tree_entry *entry;
repo = cl_git_sandbox_init("deprecated-mode.git");

View File

@ -65,7 +65,7 @@ static void assert_merge_and_or_remote_key_missing(git_repository *repository, c
{
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_assert_equal_i(GIT_ENOTFOUND, git_branch_tracking(&tracking, branch));