From 3faf1def9b198d830a5684f6bb2b418bede1ae45 Mon Sep 17 00:00:00 2001 From: XieHan Date: Thu, 20 May 2021 17:21:21 +0800 Subject: [PATCH] fix warning --- src/factory/HttpTaskImpl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/factory/HttpTaskImpl.cc b/src/factory/HttpTaskImpl.cc index bd11fb7c..0529a936 100644 --- a/src/factory/HttpTaskImpl.cc +++ b/src/factory/HttpTaskImpl.cc @@ -380,7 +380,7 @@ static int __encode_auth(const char *p, std::string& auth) BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); b64 = BIO_push(b64, bmem); BIO_write(b64, p, strlen(p)); - BIO_flush(b64); + (void)BIO_flush(b64); BIO_get_mem_ptr(b64, &bptr); if (bptr->length > 0) @@ -390,9 +390,9 @@ static int __encode_auth(const char *p, std::string& auth) } BIO_free_all(b64); - return 0; } + BIO_free_all(b64); }