summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/merge.c4
-rw-r--r--src/netops.c2
-rw-r--r--src/push.c4
3 files changed, 6 insertions, 4 deletions
diff --git a/src/merge.c b/src/merge.c
index 2cbf531f9..115867971 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -1649,7 +1649,7 @@ static int write_merge_head(
goto cleanup;
for (i = 0; i < heads_len; i++) {
- if ((error = git_filebuf_printf(&file, "%s\n", &heads[i]->oid_str)) < 0)
+ if ((error = git_filebuf_printf(&file, "%s\n", heads[i]->oid_str)) < 0)
goto cleanup;
}
@@ -2240,6 +2240,8 @@ static int merge_check_workdir(size_t *conflicts, git_repository *repo, git_inde
git_diff_options opts = GIT_DIFF_OPTIONS_INIT;
int error = 0;
+ GIT_UNUSED(index_new);
+
*conflicts = 0;
opts.flags |= GIT_DIFF_INCLUDE_UNTRACKED;
diff --git a/src/netops.c b/src/netops.c
index 592e46449..15ed0fc26 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -662,7 +662,7 @@ void gitno_connection_data_free_ptrs(gitno_connection_data *d)
static char* unescape(char *str)
{
int x, y;
- size_t len = strlen(str);
+ int len = (int)strlen(str);
for (x=y=0; str[y]; ++x, ++y) {
if ((str[x] = str[y]) == '%') {
diff --git a/src/push.c b/src/push.c
index 5ad15e3fd..3c9d5bb35 100644
--- a/src/push.c
+++ b/src/push.c
@@ -618,7 +618,7 @@ on_error:
static int filter_refs(git_remote *remote)
{
- git_remote_head **heads;
+ const git_remote_head **heads;
size_t heads_len, i;
git_vector_clear(&remote->refs);
@@ -627,7 +627,7 @@ static int filter_refs(git_remote *remote)
return -1;
for (i = 0; i < heads_len; i++) {
- if (git_vector_insert(&remote->refs, heads[i]) < 0)
+ if (git_vector_insert(&remote->refs, (void *)heads[i]) < 0)
return -1;
}