diff --git a/src/conn.cpp b/src/conn.cpp index 6348c98..3fa6118 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -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; } diff --git a/src/os/default/osdSockExt.cpp b/src/os/default/osdSockExt.cpp index af4486c..cc1d7f0 100644 --- a/src/os/default/osdSockExt.cpp +++ b/src/os/default/osdSockExt.cpp @@ -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) {} diff --git a/src/udp_collector.h b/src/udp_collector.h index e3622df..8958e47 100644 --- a/src/udp_collector.h +++ b/src/udp_collector.h @@ -93,8 +93,6 @@ private: class PVXS_API UDPListener { - friend struct UDPManager; - std::function searchCB; std::function beaconCB; const std::shared_ptr manager;