summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-12-12 12:14:35 +0100
committerLaszlo Ersek <lersek@redhat.com>2017-12-12 14:08:58 +0100
commitdfc5a4dec6028d39fdd38918b2d45867c3b76ee4 (patch)
tree5e78fd0239824d52f4427b0df9411813ff6f8ea5 /MdeModulePkg
parent764c9d95513fe4bf88719262ccf72bd9986a82fd (diff)
downloadedk2-dfc5a4dec6028d39fdd38918b2d45867c3b76ee4.zip
edk2-dfc5a4dec6028d39fdd38918b2d45867c3b76ee4.tar.gz
edk2-dfc5a4dec6028d39fdd38918b2d45867c3b76ee4.tar.bz2
MdeModulePkg/PiSmmCore: fix GCC build error
> MdeModulePkg/Core/PiSmmCore/PiSmmCore.c: In function > 'SmmReadyToBootHandler': > MdeModulePkg/Core/PiSmmCore/PiSmmCore.c:323:14: error: passing argument > 3 of 'SmmLocateProtocol' from incompatible pointer type [-Werror] > ); > ^ > In file included from MdeModulePkg/Core/PiSmmCore/PiSmmCore.c:15:0: > MdeModulePkg/Core/PiSmmCore/PiSmmCore.h:586:1: note: expected 'void **' > but argument is of type 'struct EFI_SMM_SX_DISPATCH2_PROTOCOL **' > SmmLocateProtocol ( > ^ > cc1: all warnings being treated as errors Cc: Eric Dong <eric.dong@intel.com> Cc: Star Zeng <star.zeng@intel.com> Fixes: 7b9b55b2ef7be13608605dc58a54b9ca04be4e40 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Core/PiSmmCore/PiSmmCore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
index dbb8993..1ccb9c7 100644
--- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
+++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
@@ -319,7 +319,7 @@ SmmReadyToBootHandler (
Status = SmmLocateProtocol (
&gEfiSmmSxDispatch2ProtocolGuid,
NULL,
- &SxDispatch
+ (VOID **)&SxDispatch
);
if (!EFI_ERROR (Status)) {
//