mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 15:11:33 +00:00
Fix MSVC warnings
This commit is contained in:
parent
72a3fe42fb
commit
99baacfb56
@ -78,7 +78,7 @@ void *git_cache_get(git_cache *cache, const git_oid *oid)
|
|||||||
{
|
{
|
||||||
const uint32_t *hash;
|
const uint32_t *hash;
|
||||||
size_t i, pos, found = 0;
|
size_t i, pos, found = 0;
|
||||||
cache_node *node;
|
cache_node *node = NULL;
|
||||||
|
|
||||||
hash = (const uint32_t *)oid->id;
|
hash = (const uint32_t *)oid->id;
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ int git_commit_create_v(
|
|||||||
oid, repo, update_ref, author, committer, message,
|
oid, repo, update_ref, author, committer, message,
|
||||||
tree_oid, parent_count, oids);
|
tree_oid, parent_count, oids);
|
||||||
|
|
||||||
free(oids);
|
free((void *)oids);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ int git_commit_create_ov(
|
|||||||
git_object_id((git_object *)tree),
|
git_object_id((git_object *)tree),
|
||||||
parent_count, oids);
|
parent_count, oids);
|
||||||
|
|
||||||
free(oids);
|
free((void *)oids);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ int git_commit_create_o(
|
|||||||
git_object_id((git_object *)tree),
|
git_object_id((git_object *)tree),
|
||||||
parent_count, oids);
|
parent_count, oids);
|
||||||
|
|
||||||
free(oids);
|
free((void *)oids);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,13 +32,6 @@ typedef struct {
|
|||||||
unsigned int __dummy;
|
unsigned int __dummy;
|
||||||
} ttest_obj;
|
} ttest_obj;
|
||||||
|
|
||||||
void *cache0_thread(void *data)
|
|
||||||
{
|
|
||||||
git_cache *cache = (git_cache*)data;
|
|
||||||
unsigned int num;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
BEGIN_TEST(cache0, "run several threads polling the cache at the same time")
|
BEGIN_TEST(cache0, "run several threads polling the cache at the same time")
|
||||||
|
|
||||||
END_TEST
|
END_TEST
|
||||||
|
Loading…
Reference in New Issue
Block a user