From d2aee5e4fed92b80ba913e2ee8a332df208765a3 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Tue, 15 Oct 2019 15:24:32 +0300 Subject: [PATCH] Fix compile warnings when BUILD_TLS=no. --- src/redis-cli.c | 1 + src/sentinel.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index 01211ee24..417f1b1a9 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -821,6 +821,7 @@ error: return REDIS_ERR; #else (void) c; + (void) err; return REDIS_OK; #endif } diff --git a/src/sentinel.c b/src/sentinel.c index 92869805d..0490db4e9 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -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);