From 92dda53e9fe6568c9204ffd97f146710bdde3369 Mon Sep 17 00:00:00 2001 From: xli24 Date: Wed, 31 Jan 2007 04:57:46 +0000 Subject: Make EdkModulePkg pass Intel IPF compiler with /W4 /WX switches, solving warning #1419. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2338 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkModulePkg/Core/Dxe/Image/ImageFile.c | 70 --------------------------------- 1 file changed, 70 deletions(-) (limited to 'EdkModulePkg/Core/Dxe/Image/ImageFile.c') diff --git a/EdkModulePkg/Core/Dxe/Image/ImageFile.c b/EdkModulePkg/Core/Dxe/Image/ImageFile.c index 999cd694ad..408688c69f 100644 --- a/EdkModulePkg/Core/Dxe/Image/ImageFile.c +++ b/EdkModulePkg/Core/Dxe/Image/ImageFile.c @@ -25,15 +25,6 @@ Revision History #include - -VOID -CoreDevicePathToFileName ( - IN FILEPATH_DEVICE_PATH *FilePath, - OUT CHAR16 **String - ); - - - EFI_STATUS CoreOpenImageFile ( IN BOOLEAN BootPolicy, @@ -432,67 +423,6 @@ Returns: return Status; } - -VOID -CoreDevicePathToFileName ( - IN FILEPATH_DEVICE_PATH *FilePath, - OUT CHAR16 **String - ) -/*++ - -Routine Description: - - Transfer a device's full path a string. - -Arguments: - - FilePath - Device path - - String - The string represent the device's full path - -Returns: - - None - ---*/ -{ - UINTN StringSize; - FILEPATH_DEVICE_PATH *FilePathNode; - CHAR16 *Str; - - *String = NULL; - StringSize = 0; - FilePathNode = FilePath; - while (!IsDevicePathEnd (&FilePathNode->Header)) { - - // - // For filesystem access each node should be a filepath component - // - if (DevicePathType (&FilePathNode->Header) != MEDIA_DEVICE_PATH || - DevicePathSubType (&FilePathNode->Header) != MEDIA_FILEPATH_DP) { - - return; - } - - StringSize += StrLen (FilePathNode->PathName); - - FilePathNode = (FILEPATH_DEVICE_PATH *) NextDevicePathNode (&FilePathNode->Header); - } - - *String = CoreAllocateBootServicesPool (StringSize); - if (*String == NULL) { - return; - } - - FilePathNode = FilePath; - Str = *String; - while (!IsDevicePathEnd (&FilePathNode->Header)) { - StrCat (Str, FilePathNode->PathName); - FilePathNode = (FILEPATH_DEVICE_PATH *) NextDevicePathNode (&FilePathNode->Header); - } -} - - BOOLEAN CoreGrowBuffer ( IN OUT EFI_STATUS *Status, -- cgit v1.2.3