summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-04-03 11:11:20 +0800
committerLiming Gao <liming.gao@intel.com>2018-04-11 09:37:36 +0800
commitc1599f3e4f5cd076427aa502f2c213c810dbd696 (patch)
treed76247c235f4ca68f9dbbbacb974f8e3c0de03ad /MdeModulePkg
parent3b4c8c5f97f236029e97ad469a8c1d391dfe9742 (diff)
downloadedk2-c1599f3e4f5cd076427aa502f2c213c810dbd696.tar.gz
edk2-c1599f3e4f5cd076427aa502f2c213c810dbd696.tar.bz2
edk2-c1599f3e4f5cd076427aa502f2c213c810dbd696.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> (cherry picked from commit be18cb03053bd2f40e5b56d16b25251c01505409)
Diffstat (limited to 'MdeModulePkg')
-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 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)));