Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
01321890
Commit
01321890
authored
Oct 15, 2019
by
Yossi Gottlieb
Browse files
Fix compile warnings when BUILD_TLS=no.
parent
d7f2681a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
01321890
...
@@ -821,6 +821,7 @@ error:
...
@@ -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
}
}
...
...
src/sentinel.c
View file @
01321890
...
@@ -2005,7 +2005,7 @@ void sentinelSetClientName(sentinelRedisInstance *ri, redisAsyncContext *c, char
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment