summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-07-13 11:50:49 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-08-05 20:51:59 +0200
commit959a93e716ad76430546418edcb66ea2ee0cad52 (patch)
tree84fb424f8c6a330e8fdbd991f4dd0fbc537faa51
parentf59a34d2e60d7b5d33c479f617375974aacb64b9 (diff)
downloadlibgit2-959a93e716ad76430546418edcb66ea2ee0cad52.tar.gz
Silence unused variables warnings
-rw-r--r--src/clone.c3
-rw-r--r--src/transports/ssh.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/clone.c b/src/clone.c
index 8f0284ae6..a80b77241 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -482,6 +482,9 @@ static const char *repository_base(git_repository *repo)
static bool can_link(const char *src, const char *dst, int link)
{
#ifdef GIT_WIN32
+ GIT_UNUSED(src);
+ GIT_UNUSED(dst);
+ GIT_UNUSED(link);
return false;
#else
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index f84ea4dec..85f620013 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -670,6 +670,7 @@ int git_transport_ssh_with_paths(git_transport **out, git_remote *owner, void *p
return 0;
#else
GIT_UNUSED(owner);
+ GIT_UNUSED(payload);
assert(out);
*out = NULL;