Resolved several warnings generated by GCC.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6685 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2008-11-23 23:57:13 +00:00
parent 8e53d24672
commit 7c04a67908
3 changed files with 14 additions and 14 deletions

View File

@ -292,7 +292,7 @@ Returns:
Status = gBS->AllocatePool (
EfiBootServicesData,
ValidBufferSize,
&ValidBuffer
(VOID**) &ValidBuffer
);
if (EFI_ERROR (Status)) {
return Status;
@ -1134,7 +1134,7 @@ Returns:
Status = gBS->AllocatePool (
EfiRuntimeServicesData,
(UINTN) sizeof (VARIABLE_GLOBAL),
&mGlobal
(VOID**) &mGlobal
);
if (EFI_ERROR (Status)) {
return Status;
@ -1182,7 +1182,7 @@ Returns:
Status = EFI_UNSUPPORTED;
return Status;
}
Status = FileStorageConstructor (
&mGlobal->VariableStore[NonVolatile],
&mGlobal->GoVirtualChildEvent[NonVolatile],
@ -1307,9 +1307,9 @@ OnVirtualAddressChangeFsv (
for (Index = 0; Index < MaxType; Index++) {
mGlobal->GoVirtualChildEvent[Index] (Event, mGlobal->VariableStore[Index]);
EfiConvertPointer (0, &mGlobal->VariableStore[Index]);
EfiConvertPointer (0, (VOID**) &mGlobal->VariableStore[Index]);
EfiConvertPointer (0, &mGlobal->VariableBase[Index]);
}
EfiConvertPointer (0, &mGlobal->Scratch);
EfiConvertPointer (0, &mGlobal);
EfiConvertPointer (0, (VOID**) &mGlobal);
}

View File

@ -154,7 +154,7 @@ CheckStoreExists (
Status = gBS->HandleProtocol (
Handle,
&gEfiSimpleFileSystemProtocolGuid,
&Volume
(VOID **) &Volume
);
if (EFI_ERROR (Status)) {
return Status;
@ -243,7 +243,7 @@ FileStorageConstructor (
EFI_STATUS Status;
EFI_EVENT Event;
Status = gBS->AllocatePool (EfiRuntimeServicesData, sizeof(VS_DEV), &Dev);
Status = gBS->AllocatePool (EfiRuntimeServicesData, sizeof(VS_DEV), (VOID **) &Dev);
ASSERT_EFI_ERROR (Status);
ZeroMem (Dev, sizeof(VS_DEV));
@ -361,7 +361,7 @@ OnVirtualAddressChangeFs (
Dev = DEV_FROM_THIS (Context);
EfiConvertPointer (0, &VAR_DATA_PTR (Dev));
EfiConvertPointer (0, (VOID **) &VAR_DATA_PTR (Dev));
EfiConvertPointer (0, (VOID **) &Dev->VarStore.Erase);
EfiConvertPointer (0, (VOID **) &Dev->VarStore.Write);
}
@ -394,7 +394,7 @@ OpenStore (
Status = gBS->HandleProtocol (
Handle,
&gEfiSimpleFileSystemProtocolGuid,
&Volume
(VOID **) &Volume
);
if (EFI_ERROR (Status)) {
return Status;

View File

@ -54,7 +54,7 @@ MemStorageConstructor (
EFI_STATUS Status;
VS_DEV *Dev;
Status = gBS->AllocatePool (EfiRuntimeServicesData, sizeof(VS_DEV), &Dev);
Status = gBS->AllocatePool (EfiRuntimeServicesData, sizeof(VS_DEV), (VOID **) &Dev);
ASSERT_EFI_ERROR (Status);
ZeroMem (Dev, sizeof(VS_DEV));
@ -65,7 +65,7 @@ MemStorageConstructor (
Dev->VarStore.Erase = MemEraseStore;
Dev->VarStore.Write = MemWriteStore;
Status = gBS->AllocatePool (EfiRuntimeServicesData, Size, &VAR_DATA_PTR (Dev));
Status = gBS->AllocatePool (EfiRuntimeServicesData, Size, (VOID **) &VAR_DATA_PTR (Dev));
ASSERT_EFI_ERROR (Status);
DEBUG ((EFI_D_ERROR, "VStorage: Size = 0x%x\n", Size));
@ -87,9 +87,9 @@ OnVirtualAddressChangeMs (
Dev = DEV_FROM_THIS (Context);
EfiConvertPointer (0, &VAR_DATA_PTR (Dev));
EfiConvertPointer (0, (VOID**)&Dev->VarStore.Erase);
EfiConvertPointer (0, (VOID**)&Dev->VarStore.Write);
EfiConvertPointer (0, (VOID **)&VAR_DATA_PTR (Dev));
EfiConvertPointer (0, (VOID **)&Dev->VarStore.Erase);
EfiConvertPointer (0, (VOID **)&Dev->VarStore.Write);
}
EFI_STATUS