From 5d4cafb6105ac70b57de1df2358efd5ab3844f2f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 4 Jan 2018 18:55:19 +0100 Subject: [PATCH] BUILD: ssl: silence a warning when building without NPN nor ALPN support When building with a library not offering any of these, ssl_conf_cur is not used. Can be backported to 1.8. --- 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 f9d5f2567..163b6a13f 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -4044,7 +4044,7 @@ int ssl_sock_prepare_ctx(struct bind_conf *bind_conf, struct ssl_bind_conf *ssl_ struct proxy *curproxy = bind_conf->frontend; int cfgerr = 0; int verify = SSL_VERIFY_NONE; - struct ssl_bind_conf *ssl_conf_cur; + struct ssl_bind_conf __maybe_unused *ssl_conf_cur; const char *conf_ciphers; const char *conf_curves = NULL;