mirror of https://github.com/acidanthera/audk.git
EdkCompatibilityPkg RuntimeDxe Lib: Fix GCC warning
Fix warning seen with GCC 4.4. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11222 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1d8fa5e94f
commit
58b9f0f0ee
|
@ -517,7 +517,7 @@ Returns:
|
||||||
//
|
//
|
||||||
// Check whether it is in SMM mode.
|
// Check whether it is in SMM mode.
|
||||||
//
|
//
|
||||||
Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, &SmmBase);
|
Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, (VOID**) &SmmBase);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
SmmBase->InSmm (SmmBase, &mInSmm);
|
SmmBase->InSmm (SmmBase, &mInSmm);
|
||||||
}
|
}
|
||||||
|
@ -525,7 +525,7 @@ Returns:
|
||||||
//
|
//
|
||||||
// Directly locate SmmStatusCode protocol
|
// Directly locate SmmStatusCode protocol
|
||||||
//
|
//
|
||||||
Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, &gSmmStatusCodeProtocol);
|
Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, (VOID**) &gSmmStatusCodeProtocol);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
gSmmStatusCodeProtocol = NULL;
|
gSmmStatusCodeProtocol = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -517,7 +517,7 @@ Returns:
|
||||||
//
|
//
|
||||||
// Check whether it is in SMM mode.
|
// Check whether it is in SMM mode.
|
||||||
//
|
//
|
||||||
Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, &SmmBase);
|
Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, (VOID**) &SmmBase);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
SmmBase->InSmm (SmmBase, &mInSmm);
|
SmmBase->InSmm (SmmBase, &mInSmm);
|
||||||
}
|
}
|
||||||
|
@ -525,7 +525,7 @@ Returns:
|
||||||
//
|
//
|
||||||
// Directly locate SmmStatusCode protocol
|
// Directly locate SmmStatusCode protocol
|
||||||
//
|
//
|
||||||
Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, &gSmmStatusCodeProtocol);
|
Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, (VOID**) &gSmmStatusCodeProtocol);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
gSmmStatusCodeProtocol = NULL;
|
gSmmStatusCodeProtocol = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue