From 2433c9d23b03c18006c12d37306f6e151c713607 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 21 Jun 2021 13:03:16 +0300 Subject: openssl: explicitly ignore BIO_reset() return value This caused some -Wall errors on certain gcc versions due to BIO_reset() being a macro with explicit cast. --- src/crypto_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/crypto_openssl.c b/src/crypto_openssl.c index b32f238..73f1879 100644 --- a/src/crypto_openssl.c +++ b/src/crypto_openssl.c @@ -101,7 +101,7 @@ int apk_pkey_load(struct apk_pkey *pkey, int dirfd, const char *fn) key = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL); if (!key) { - BIO_reset(bio); + (void)BIO_reset(bio); key = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL); } ERR_clear_error(); -- cgit v1.2.3-70-g09d2