From: Azat Khuzhin Date: Sun, 10 Jul 2022 06:26:16 +0000 (+0300) Subject: Suppress -Wunused-value for BIO_set_close() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e67085e56e8e8c413c2f383383a7002e07269822;p=libevent Suppress -Wunused-value for BIO_set_close() --- diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index 1e851749..c74a76e4 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -477,7 +477,7 @@ bufferevent_openssl_socket_new(struct event_base *base, This is probably an error on our part. Fail. */ goto err; } - BIO_set_close(bio, 0); + (void)BIO_set_close(bio, 0); } else { /* The SSL isn't configured with a BIO with an fd. */ if (fd >= 0) {