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
This commit is contained in:
vanjeff 2007-07-25 07:35:03 +00:00
parent 216519bb4d
commit 34edf2ae72
1 changed files with 3 additions and 2 deletions

View File

@ -362,7 +362,7 @@ IpIoCreateSndEntry (
EFI_IP4_TRANSMIT_DATA *TxData; EFI_IP4_TRANSMIT_DATA *TxData;
EFI_STATUS Status; EFI_STATUS Status;
EFI_IP4_OVERRIDE_DATA *OverrideData; EFI_IP4_OVERRIDE_DATA *OverrideData;
UINT32 Index; volatile UINT32 Index;
// //
// Allocate resource for SndEntry // Allocate resource for SndEntry
@ -429,8 +429,8 @@ IpIoCreateSndEntry (
TxData->TotalDataLength = Pkt->TotalSize; TxData->TotalDataLength = Pkt->TotalSize;
TxData->FragmentCount = Pkt->BlockOpNum; 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].FragmentBuffer = Pkt->BlockOp[Index].Head;
TxData->FragmentTable[Index].FragmentLength = Pkt->BlockOp[Index].Size; TxData->FragmentTable[Index].FragmentLength = Pkt->BlockOp[Index].Size;
} }
@ -857,6 +857,7 @@ IpIoStop (
// //
// Detroy the Ip List used by IpIo // Detroy the Ip List used by IpIo
// //
while (!NetListIsEmpty (&(IpIo->IpList))) { while (!NetListIsEmpty (&(IpIo->IpList))) {
IpInfo = NET_LIST_HEAD (&(IpIo->IpList), IP_IO_IP_INFO, Entry); IpInfo = NET_LIST_HEAD (&(IpIo->IpList), IP_IO_IP_INFO, Entry);