Commit 70b852cee2c9e87588d65581e13c9e65b255cecf

Carlos Martín Nieto 2015-03-19T00:45:43

Silence unused warnings when not using OpenSSL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/openssl_stream.c b/src/openssl_stream.c
index 9ddf6e4..8d79a9d 100644
--- a/src/openssl_stream.c
+++ b/src/openssl_stream.c
@@ -374,6 +374,10 @@ int git_openssl_stream_new(git_stream **out, const char *host, const char *port)
 
 int git_openssl_stream_new(git_stream **out, const char *host, const char *port)
 {
+	GIT_UNUSED(out);
+	GIT_UNUSED(host);
+	GIT_UNUSED(port);
+
 	giterr_set(GITERR_SSL, "openssl is not supported in this version");
 	return -1;
 }