Skip to content

Commit 358c49a

Browse files
fix: resolve warnings during build (#1532)
1 parent de13f34 commit 358c49a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/dpp/sslconnection.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ void ssl_connection::on_buffer_drained() {
277277
/* SSL Client constructor throws std::runtime_error if it can't allocate a socket or call connect() */
278278
void ssl_connection::connect() {
279279
/* Resolve hostname to IP */
280-
int err = 0;
281280
const dns_cache_entry* addr = resolve_hostname(hostname, port);
282281
sfd = addr->make_connecting_socket();
283282
address_t destination = addr->get_connecting_address(from_string<uint16_t>(this->port, std::dec));

src/dpp/utility.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void exec(const std::string& cmd, std::vector<std::string> parameters, cmd_resul
465465
}
466466
/* Capture stderr */
467467
cmd_and_parameters << " 2>&1";
468-
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd_and_parameters.str().c_str(), "r"), pclose);
468+
std::unique_ptr<FILE, int(*)(FILE*)> pipe(popen(cmd_and_parameters.str().c_str(), "r"), pclose);
469469
if (!pipe) {
470470
return;
471471
}

0 commit comments

Comments
 (0)