Silence unused warnings when not using OpenSSL

This commit is contained in:
Carlos Martín Nieto 2015-03-19 00:45:43 +01:00
parent 6946a3be95
commit 70b852cee2

View File

@ -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;
}