From 58b9f0f0eefeec378a8ef0f8ec2b21d0995057df Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 3 Jan 2011 18:53:51 +0000 Subject: [PATCH] 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 --- .../Library/RuntimeDxe/EfiRuntimeLib/Ia32/RuntimeLib.c | 4 ++-- .../Library/RuntimeDxe/EfiRuntimeLib/X64/RuntimeLib.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/RuntimeLib.c b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/RuntimeLib.c index 3e973e0909..2b681224ca 100644 --- a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/RuntimeLib.c +++ b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/RuntimeLib.c @@ -517,7 +517,7 @@ Returns: // // Check whether it is in SMM mode. // - Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, &SmmBase); + Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, (VOID**) &SmmBase); if (!EFI_ERROR (Status)) { SmmBase->InSmm (SmmBase, &mInSmm); } @@ -525,7 +525,7 @@ Returns: // // Directly locate SmmStatusCode protocol // - Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, &gSmmStatusCodeProtocol); + Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, (VOID**) &gSmmStatusCodeProtocol); if (EFI_ERROR (Status)) { gSmmStatusCodeProtocol = NULL; } diff --git a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/RuntimeLib.c b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/RuntimeLib.c index 4dfca7c853..a796708fbc 100644 --- a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/RuntimeLib.c +++ b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/RuntimeLib.c @@ -517,7 +517,7 @@ Returns: // // Check whether it is in SMM mode. // - Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, &SmmBase); + Status = gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, (VOID**) &SmmBase); if (!EFI_ERROR (Status)) { SmmBase->InSmm (SmmBase, &mInSmm); } @@ -525,7 +525,7 @@ Returns: // // Directly locate SmmStatusCode protocol // - Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, &gSmmStatusCodeProtocol); + Status = gBS->LocateProtocol (&gEfiSmmStatusCodeProtocolGuid, NULL, (VOID**) &gSmmStatusCodeProtocol); if (EFI_ERROR (Status)) { gSmmStatusCodeProtocol = NULL; }