Fix gcc warnings -- please review affected files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1972 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen 2006-11-17 17:38:32 +00:00
parent dfd52cc1c6
commit 0cc82df1eb
5 changed files with 10 additions and 8 deletions

View File

@ -22,7 +22,9 @@ Abstract:
#include <DxeIpl.h>
#ifndef __GNUC__
#pragma warning( disable : 4305 )
#endif
BOOLEAN gInMemory = FALSE;

View File

@ -155,6 +155,6 @@ Returns:
);
}
return (EFI_PHYSICAL_ADDRESS) PageMap;
return (EFI_PHYSICAL_ADDRESS) (UINTN)PageMap; // FIXME
}

View File

@ -35,9 +35,9 @@ Key:
// Lib will ASSERT if more FVB devices than this are added to the system.
//
STATIC FVB_ENTRY *mFvbEntry;
STATIC EFI_EVENT mFvbVirtualNotifyEvent;
// STATIC EFI_EVENT mFvbVirtualNotifyEvent;
STATIC EFI_EVENT mFvbRegistration;
STATIC EFI_EVENT mEfiFvbVirtualNotifyEvent;
// STATIC EFI_EVENT mEfiFvbVirtualNotifyEvent;
STATIC BOOLEAN mEfiFvbInitialized = FALSE;
STATIC UINTN mFvbCount;
@ -113,10 +113,10 @@ Returns:
//
// Get the interface pointer and if it's ours, skip it
//
Status = gBS->HandleProtocol (Handle, &gEfiFirmwareVolumeBlockProtocolGuid, &mFvbEntry[UpdateIndex].Fvb);
Status = gBS->HandleProtocol (Handle, &gEfiFirmwareVolumeBlockProtocolGuid, (VOID **)&mFvbEntry[UpdateIndex].Fvb);
ASSERT_EFI_ERROR (Status);
Status = gBS->HandleProtocol (Handle, &gEfiFvbExtensionProtocolGuid, &mFvbEntry[UpdateIndex].FvbExtension);
Status = gBS->HandleProtocol (Handle, &gEfiFvbExtensionProtocolGuid, (VOID **)&mFvbEntry[UpdateIndex].FvbExtension);
if (Status != EFI_SUCCESS) {
mFvbEntry[UpdateIndex].FvbExtension = NULL;
}

View File

@ -30,7 +30,7 @@ Revision History
//
#define BOOT_BLOCK_BASE
STATIC
// STATIC
EFI_STATUS
GetSwapState (
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
@ -56,7 +56,7 @@ Returns:
return EFI_SUCCESS;
}
STATIC
// STATIC
EFI_STATUS
SetSwapState (
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,

View File

@ -2108,7 +2108,7 @@ DoDhcpDora (
// now look for DHCP onlys and a Proxy
//
for (Index = 0; Index < NumOffers; ++Index) {
INT8 Index2;
UINT8 Index2;
//
// ignore proxies, bootps, non DHCP onlys, and bootable DHCPS