From 2f39aeb57cd5744d09c1ccbd4ec11dcd0c6eb57a Mon Sep 17 00:00:00 2001 From: ami-GS <1991.daiki@gmail.com> Date: Wed, 13 Nov 2024 17:12:36 -0800 Subject: [PATCH] implicit casting workaround --- published/external/xdp/details/ioctlfn.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/published/external/xdp/details/ioctlfn.h b/published/external/xdp/details/ioctlfn.h index 79f9ee71..db586ffd 100644 --- a/published/external/xdp/details/ioctlfn.h +++ b/published/external/xdp/details/ioctlfn.h @@ -245,6 +245,8 @@ _XdpIoctl( XdpHandle, *Event, NULL, Overlapped, IoStatusBlock, Operation, InBuffer, InBufferSize, OutBuffer, OutputBufferSize)); +#pragma warning(push) +#pragma warning(disable: 6221) XDPAPI_ASSERT(XdpStatus != XDP_STATUS_PENDING || MayPend); if (Event == &LocalEvent && XdpStatus == XDP_STATUS_PENDING) { @@ -255,6 +257,7 @@ _XdpIoctl( XdpStatus = _XdpConvertNtStatusToXdpStatus(IoStatusBlock->Status); } +#pragma warning(pop) if (BytesReturned != NULL) { *BytesReturned = (ULONG)IoStatusBlock->Information;