]> granicus.if.org Git - libevent/commitdiff
Suppress -Wunused-value for BIO_set_close()
authorAzat Khuzhin <azat@libevent.org>
Sun, 10 Jul 2022 06:26:16 +0000 (09:26 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 10 Jul 2022 07:07:39 +0000 (10:07 +0300)
bufferevent_openssl.c

index 1e851749d04508310c8ae509392ec21b892870b1..c74a76e41140d49d6bdb3597c0cccb0008faa4d1 100644 (file)
@@ -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) {