mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 18:38:58 +00:00
Merge pull request #1652 from yorah/fix/build-warnings
Fix/build warnings
This commit is contained in:
commit
824cf80f06
@ -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 */
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user