Fix various warnings

This commit is contained in:
Guillaume Meunier
2024-10-01 23:04:19 +02:00
parent 66df936294
commit 5e6512d825
7 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -478,7 +478,7 @@ void xrt::drivers::wivrn::TCP::send_raw(const std::vector<std::span<uint8_t>> &
}
if (hdr.msg_iovlen == 0)
return;
*(uintptr_t *)&hdr.msg_iov[0].iov_base += sent;
hdr.msg_iov[0].iov_base = (void *)((uintptr_t)hdr.msg_iov[0].iov_base + sent);
hdr.msg_iov[0].iov_len -= sent;
}
}