summaryrefslogtreecommitdiff
path: root/src/transports
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/transports
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/transports')
-rw-r--r--src/transports/cred.c6
1 files changed, 6 insertions, 0 deletions
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;