Merge pull request #1652 from yorah/fix/build-warnings

Fix/build warnings
This commit is contained in:
Vicent Martí 2013-06-14 11:13:05 -07:00
commit 824cf80f06
2 changed files with 3 additions and 1 deletions

View File

@ -320,7 +320,7 @@ int git_futils_mkdir(
min_root_len = git_path_root(make_path.ptr); min_root_len = git_path_root(make_path.ptr);
if (root < min_root_len) if (root < min_root_len)
root = min_root_len; root = min_root_len;
while (make_path.ptr[root] == '/') while (root >= 0 && make_path.ptr[root] == '/')
++root; ++root;
/* clip root to make_path length */ /* clip root to make_path length */

View File

@ -825,6 +825,8 @@ int test_names_expected(const git_diff_delta *delta, float progress, void *p)
{ {
struct rename_expected *expected = p; struct rename_expected *expected = p;
GIT_UNUSED(progress);
cl_assert(expected->idx < expected->len); cl_assert(expected->idx < expected->len);
cl_assert_equal_i(delta->status, GIT_DELTA_RENAMED); cl_assert_equal_i(delta->status, GIT_DELTA_RENAMED);