From 3c8bde88ca0c189536db741ab6f6de0b4a4fe15d Mon Sep 17 00:00:00 2001 From: Eric Salama Date: Wed, 20 Nov 2019 11:33:40 +0100 Subject: [PATCH] BUILD/MINOR: ssl: fix compiler warning about useless statement There is a compiler warning after commit a9363eb6 ("BUG/MEDIUM: ssl: 'tune.ssl.default-dh-param' value ignored with openssl > 1.1.1"): src/ssl_sock.c: In function 'ssl_sock_prepare_ctx': src/ssl_sock.c:4481:4: error: statement with no effect [-Werror=unused-value] Fix it by adding a (void) --- src/ssl_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 6e2f892598..4fa6c4f8e3 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -5041,7 +5041,7 @@ int ssl_sock_prepare_ctx(struct bind_conf *bind_conf, struct ssl_bind_conf *ssl_ NULL); if (ecdhe == NULL) { - SSL_CTX_set_ecdh_auto(ctx, 1); + (void)SSL_CTX_set_ecdh_auto(ctx, 1); return cfgerr; } #else