summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-07 15:10:13 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-07 15:10:13 +0200
commitfdb82dcd58a704940b829e8f7efa8c6844629b8b (patch)
tree65441b6172c778ac9cd9f82b11da268ddd5dfb95 /src
parent3c4442a2aa24da0f250bc1f6c4b72c1e1f4fd7ed (diff)
parent9f3c18e2ac082454c955761f10f4a0d06390c27f (diff)
downloadlibgit2-fdb82dcd58a704940b829e8f7efa8c6844629b8b.tar.gz
Merge pull request #3175 from git-up/build_warnings
Fixed build warnings on Xcode 6.1
Diffstat (limited to 'src')
-rw-r--r--src/odb.c2
-rw-r--r--src/transports/cred.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index deb9d5c82..7a718f5d6 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -53,7 +53,7 @@ static int load_alternates(git_odb *odb, const char *objects_dir, int alternate_
int git_odb__format_object_header(char *hdr, size_t n, git_off_t obj_len, git_otype obj_type)
{
const char *type_str = git_object_type2string(obj_type);
- int len = p_snprintf(hdr, n, "%s %"PRIuZ, type_str, obj_len);
+ int len = p_snprintf(hdr, n, "%s %lld", type_str, obj_len);
assert(len > 0 && len <= (int)n);
return len+1;
}
diff --git a/src/transports/cred.c b/src/transports/cred.c
index 006cd2c52..044b2a262 100644
--- a/src/transports/cred.c
+++ b/src/transports/cred.c
@@ -209,6 +209,12 @@ int git_cred_ssh_key_memory_new(
passphrase,
GIT_CREDTYPE_SSH_MEMORY);
#else
+ GIT_UNUSED(cred);
+ GIT_UNUSED(username);
+ GIT_UNUSED(publickey);
+ GIT_UNUSED(privatekey);
+ GIT_UNUSED(passphrase);
+
giterr_set(GITERR_INVALID,
"This version of libgit2 was not built with ssh memory credentials.");
return -1;