summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Pei
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2016-06-22 15:23:47 +0800
committerLiming Gao <liming.gao@intel.com>2016-06-23 15:45:40 +0800
commit733c0c88c358ef76fc9182c654a4a55d36f44704 (patch)
treee2de326322ff3df52e3991b4640eff91c6803cf2 /MdeModulePkg/Core/Pei
parent5cb90e14e15a4cbae5d35b75c2336e0001ef583a (diff)
downloadedk2-733c0c88c358ef76fc9182c654a4a55d36f44704.tar.gz
edk2-733c0c88c358ef76fc9182c654a4a55d36f44704.tar.bz2
edk2-733c0c88c358ef76fc9182c654a4a55d36f44704.zip
MdeModulePkg: Remove NORETURN for PeiCore() and DxeMain() function
PeiCore EntryPoint library _ModuleEntryPoint() will call PeiCore(), then call CpuDeadLoop (). When NORETURN is added for PeiCore(), MSVC compiler will report warning C4702: unreachable code for CpuDeadLoop (). And, the warning is treated as error and cause build break. DxeMain() has the similar issue. edk2 uses EntryPoint library to wrap every module entry point function except for SEC. The module entry point is still called by _ModuleEntryPoint(). So, there will be negative impact to add NORETURN for the module entry point. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Pei')
-rw-r--r--MdeModulePkg/Core/Pei/PeiMain.h1
-rw-r--r--MdeModulePkg/Core/Pei/PeiMain/PeiMain.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Pei/PeiMain.h b/MdeModulePkg/Core/Pei/PeiMain.h
index 54331dabd8..24983201d0 100644
--- a/MdeModulePkg/Core/Pei/PeiMain.h
+++ b/MdeModulePkg/Core/Pei/PeiMain.h
@@ -315,7 +315,6 @@ typedef struct {
**/
VOID
-NORETURN
EFIAPI
PeiCore (
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
diff --git a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
index 59fdd2614b..956200f312 100644
--- a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
+++ b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c
@@ -136,7 +136,6 @@ ShadowPeiCore (
**/
VOID
-NORETURN
EFIAPI
PeiCore (
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreDataPtr,