From c1599f3e4f5cd076427aa502f2c213c810dbd696 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Tue, 3 Apr 2018 11:11:20 +0800 Subject: [PATCH] MdeModulePkg: Update PeiCore to pass XCODE tool chain It fixes the warning for loop has empty body [-Werror,-Wempty-body]. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liang Vincent Reviewed-by: Star Zeng (cherry picked from commit be18cb03053bd2f40e5b56d16b25251c01505409) --- MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c index ff43a90ba5..709064eca4 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -680,7 +680,8 @@ PeiCheckAndSwitchStack ( for (StackPointer = (UINT32*)SecCoreData->StackBase; (StackPointer < (UINT32*)((UINTN)SecCoreData->StackBase + SecCoreData->StackSize)) \ && (*StackPointer == INIT_CAR_VALUE); - StackPointer ++); + StackPointer ++) { + } DEBUG ((EFI_D_INFO, "Temp Stack : BaseAddress=0x%p Length=0x%X\n", SecCoreData->StackBase, (UINT32)SecCoreData->StackSize)); DEBUG ((EFI_D_INFO, "Temp Heap : BaseAddress=0x%p Length=0x%X\n", Private->HobList.Raw, (UINT32)((UINTN) Private->HobList.HandoffInformationTable->EfiFreeMemoryTop - (UINTN) Private->HobList.Raw)));