quiet warning

This commit is contained in:
Michael Davidsaver
2022-04-05 07:57:16 -07:00
parent c2f1f13bb3
commit 341c8308e0
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ size_t ConnBase::enqueueTxBody(pva_app_msg_t cmd)
uint32_t(blen)},
hostBE);
auto err = evbuffer_add_buffer(tx, txBody.get());
assert(!err);
assert(!err); // could only fail if frozen/pinned, which is not the case
statTx += 8u + blen;
return 8u + blen;
}
+1 -1
View File
@@ -149,7 +149,7 @@ int recvfromx::call()
if(ret>=0) { // on success, check for control messages
if(msg.msg_flags & MSG_CTRUNC)
log_warn_printf(log, "MSG_CTRUNC, expand buffer %zu <- %zu\n", msg.msg_controllen, sizeof(cbuf));
log_warn_printf(log, "MSG_CTRUNC, expand buffer %zu <- %zu\n", size_t(msg.msg_controllen), sizeof(cbuf));
for(cmsghdr *hdr = CMSG_FIRSTHDR(&msg); hdr ; hdr = CMSG_NXTHDR(&msg, hdr)) {
if(0) {}
-2
View File
@@ -93,8 +93,6 @@ private:
class PVXS_API UDPListener
{
friend struct UDPManager;
std::function<void(UDPManager::Search&)> searchCB;
std::function<void(UDPManager::Beacon&)> beaconCB;
const std::shared_ptr<UDPManager::Pvt> manager;