Fix compile warnings when BUILD_TLS=no.
This commit is contained in:
parent
d7f2681a0c
commit
0132189007
@ -821,6 +821,7 @@ error:
|
||||
return REDIS_ERR;
|
||||
#else
|
||||
(void) c;
|
||||
(void) err;
|
||||
return REDIS_OK;
|
||||
#endif
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user