Skip to content

Commit 2f39aeb

Browse files
committed
implicit casting workaround
1 parent 1746795 commit 2f39aeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

published/external/xdp/details/ioctlfn.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ _XdpIoctl(
245245
XdpHandle, *Event, NULL, Overlapped, IoStatusBlock, Operation, InBuffer,
246246
InBufferSize, OutBuffer, OutputBufferSize));
247247

248+
#pragma warning(push)
249+
#pragma warning(disable: 6221)
248250
XDPAPI_ASSERT(XdpStatus != XDP_STATUS_PENDING || MayPend);
249251

250252
if (Event == &LocalEvent && XdpStatus == XDP_STATUS_PENDING) {
@@ -255,6 +257,7 @@ _XdpIoctl(
255257

256258
XdpStatus = _XdpConvertNtStatusToXdpStatus(IoStatusBlock->Status);
257259
}
260+
#pragma warning(pop)
258261

259262
if (BytesReturned != NULL) {
260263
*BytesReturned = (ULONG)IoStatusBlock->Information;

0 commit comments

Comments
 (0)