diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-31 04:57:46 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-31 04:57:46 +0000 |
commit | 92dda53e9fe6568c9204ffd97f146710bdde3369 (patch) | |
tree | 6e555e93dae8c4ea49d503ecae1f56b3d4d2db3a /EdkModulePkg/Core/Dxe/Image/ImageFile.c | |
parent | 86e6bb786f6f23201a2041901362e08b80681930 (diff) | |
download | edk2-platforms-92dda53e9fe6568c9204ffd97f146710bdde3369.tar.xz |
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
Diffstat (limited to 'EdkModulePkg/Core/Dxe/Image/ImageFile.c')
-rw-r--r-- | EdkModulePkg/Core/Dxe/Image/ImageFile.c | 70 |
1 files changed, 0 insertions, 70 deletions
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 <DxeMain.h>
-
-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,
|