From: Eric Salama Date: Wed, 20 Nov 2019 10:33:40 +0000 (+0100) Subject: BUILD/MINOR: ssl: fix compiler warning about useless statement X-Git-Tag: v2.1.0~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c8bde88ca0c189536db741ab6f6de0b4a4fe15d;p=thirdparty%2Fhaproxy.git 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) --- 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