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
This commit is contained in:
xli24
2007-01-31 04:57:46 +00:00
parent 86e6bb786f
commit 92dda53e9f
100 changed files with 2096 additions and 2043 deletions

View File

@ -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,