Fix compile warnings when BUILD_TLS=no.

This commit is contained in:
Yossi Gottlieb 2019-10-15 15:24:32 +03:00
parent d7f2681a0c
commit 0132189007
2 changed files with 2 additions and 1 deletions

View File

@ -821,6 +821,7 @@ error:
return REDIS_ERR;
#else
(void) c;
(void) err;
return REDIS_OK;
#endif
}

View File

@ -2005,7 +2005,7 @@ void sentinelSetClientName(sentinelRedisInstance *ri, redisAsyncContext *c, char
static int instanceLinkNegotiateTLS(redisAsyncContext *context) {
#ifndef USE_OPENSSL
(void) link;
(void) context;
#else
if (!redis_tls_ctx) return C_ERR;
SSL *ssl = SSL_new(redis_tls_ctx);