From 34edf2ae729941a6203e4e7f614db32204a9c47d Mon Sep 17 00:00:00 2001 From: vanjeff Date: Wed, 25 Jul 2007 07:35:03 +0000 Subject: [PATCH] Add volatile type definition to avoid link error when building with ICC git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3439 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c index cfc8970c7c..f377138a19 100644 --- a/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c +++ b/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c @@ -362,7 +362,7 @@ IpIoCreateSndEntry ( EFI_IP4_TRANSMIT_DATA *TxData; EFI_STATUS Status; EFI_IP4_OVERRIDE_DATA *OverrideData; - UINT32 Index; + volatile UINT32 Index; // // Allocate resource for SndEntry @@ -429,8 +429,8 @@ IpIoCreateSndEntry ( TxData->TotalDataLength = Pkt->TotalSize; TxData->FragmentCount = Pkt->BlockOpNum; - for (Index = 0; Index < Pkt->BlockOpNum; Index++) { + for (Index = 0; Index < Pkt->BlockOpNum; Index++) { TxData->FragmentTable[Index].FragmentBuffer = Pkt->BlockOp[Index].Head; TxData->FragmentTable[Index].FragmentLength = Pkt->BlockOp[Index].Size; } @@ -857,6 +857,7 @@ IpIoStop ( // // Detroy the Ip List used by IpIo // + while (!NetListIsEmpty (&(IpIo->IpList))) { IpInfo = NET_LIST_HEAD (&(IpIo->IpList), IP_IO_IP_INFO, Entry); -- 2.39.2