Fix compile warnings when BUILD_TLS=no.
This commit is contained in:
parent
d7f2681a0c
commit
0132189007
@ -821,6 +821,7 @@ error:
|
|||||||
return REDIS_ERR;
|
return REDIS_ERR;
|
||||||
#else
|
#else
|
||||||
(void) c;
|
(void) c;
|
||||||
|
(void) err;
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -2005,7 +2005,7 @@ void sentinelSetClientName(sentinelRedisInstance *ri, redisAsyncContext *c, char
|
|||||||
|
|
||||||
static int instanceLinkNegotiateTLS(redisAsyncContext *context) {
|
static int instanceLinkNegotiateTLS(redisAsyncContext *context) {
|
||||||
#ifndef USE_OPENSSL
|
#ifndef USE_OPENSSL
|
||||||
(void) link;
|
(void) context;
|
||||||
#else
|
#else
|
||||||
if (!redis_tls_ctx) return C_ERR;
|
if (!redis_tls_ctx) return C_ERR;
|
||||||
SSL *ssl = SSL_new(redis_tls_ctx);
|
SSL *ssl = SSL_new(redis_tls_ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user