mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 20:13:24 +00:00
Fix compilation warnings in MSVC
This commit is contained in:
parent
340fc0d40a
commit
f120e92b23
@ -1051,12 +1051,15 @@ cleanup:
|
|||||||
|
|
||||||
static int _reference_available_cb(const char *ref, void *data)
|
static int _reference_available_cb(const char *ref, void *data)
|
||||||
{
|
{
|
||||||
|
const char *new, *old;
|
||||||
|
git_vector *refs;
|
||||||
|
|
||||||
assert(ref && data);
|
assert(ref && data);
|
||||||
|
|
||||||
git_vector *refs = (git_vector *)data;
|
refs = (git_vector *)data;
|
||||||
|
|
||||||
const char *new = (const char *)git_vector_get(refs, 0);
|
new = (const char *)git_vector_get(refs, 0);
|
||||||
const char *old = (const char *)git_vector_get(refs, 1);
|
old = (const char *)git_vector_get(refs, 1);
|
||||||
|
|
||||||
if (!old || strcmp(old, ref)) {
|
if (!old || strcmp(old, ref)) {
|
||||||
int reflen = strlen(ref);
|
int reflen = strlen(ref);
|
||||||
|
Loading…
Reference in New Issue
Block a user