summaryrefslogtreecommitdiff
path: root/src/merge.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-11-13 11:12:31 -0800
committerRussell Belfer <rb@github.com>2013-11-13 11:12:31 -0800
commit98eaf39a87164eeb284df5c0239c3a31dfb538e7 (patch)
tree98cf7cd59f4ac2b30766b50dcef67ff631b6dbd9 /src/merge.c
parentcfd16ca28e593d084350b497b06eac7cb7a6c240 (diff)
downloadlibgit2-98eaf39a87164eeb284df5c0239c3a31dfb538e7.tar.gz
Fix warnings
Diffstat (limited to 'src/merge.c')
-rw-r--r--src/merge.c4
1 files changed, 3 insertions, 1 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;