mirror of
https://github.com/nginx/nginx.git
synced 2025-01-06 22:23:00 -06:00
SSL: silenced GCC warnings when building with BoringSSL.
BoringSSL uses macro stub for SSL_CTX_set_ecdh_auto that expands to 1, which triggers -Wunused-value "statement with no effect" warnings.
This commit is contained in:
parent
fb0890aee6
commit
5071bc0bcf
@ -1428,7 +1428,7 @@ ngx_ssl_ecdh_curve(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *name)
|
||||
|
||||
#ifdef SSL_CTRL_SET_ECDH_AUTO
|
||||
/* not needed in OpenSSL 1.1.0+ */
|
||||
SSL_CTX_set_ecdh_auto(ssl->ctx, 1);
|
||||
(void) SSL_CTX_set_ecdh_auto(ssl->ctx, 1);
|
||||
#endif
|
||||
|
||||
if (ngx_strcmp(name->data, "auto") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user