summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Pei
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2017-11-28 11:19:58 +0800
committerLiming Gao <liming.gao@intel.com>2017-12-05 23:09:20 +0800
commitbe18cb03053bd2f40e5b56d16b25251c01505409 (patch)
treec51ea43236eeb94bcd77de86003cac25327287c5 /MdeModulePkg/Core/Pei
parent032de38a073aa5327c178c1bf02d1a30116b7fa7 (diff)
downloadedk2-be18cb03053bd2f40e5b56d16b25251c01505409.tar.gz
edk2-be18cb03053bd2f40e5b56d16b25251c01505409.tar.bz2
edk2-be18cb03053bd2f40e5b56d16b25251c01505409.zip
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 <vincent.liang@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Pei')
-rw-r--r--MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
index 467066a0bf..79f2e5cebc 100644
--- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
+++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
@@ -676,7 +676,8 @@ PeiCheckAndSwitchStack (
for (StackPointer = (UINT32*)SecCoreData->StackBase;
(StackPointer < (UINT32*)((UINTN)SecCoreData->StackBase + SecCoreData->StackSize)) \
&& (*StackPointer == PcdGet32 (PcdInitValueInTempStack));
- StackPointer ++);
+ StackPointer ++) {
+ }
DEBUG ((DEBUG_INFO, "Temp Stack : BaseAddress=0x%p Length=0x%X\n", SecCoreData->StackBase, (UINT32)SecCoreData->StackSize));
DEBUG ((DEBUG_INFO, "Temp Heap : BaseAddress=0x%p Length=0x%X\n", SecCoreData->PeiTemporaryRamBase, (UINT32)SecCoreData->PeiTemporaryRamSize));