Skip to content

Commit

Permalink
SSL: silenced GCC warnings when building with BoringSSL.
Browse files Browse the repository at this point in the history
BoringSSL uses macro stub for SSL_CTX_set_ecdh_auto that expands to 1,
which triggers -Wunused-value "statement with no effect" warnings.
  • Loading branch information
pluknet committed Sep 8, 2022
1 parent fb0890a commit 5071bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event/ngx_event_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5071bc0

Please sign in to comment.