Re: [edk2] [Patch] MdeModulePkg: Remove NORETURN for PeiCore() and DxeMain() function

2016-06-22 Thread Gao, Liming
2, 2016 3:47 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [Patch] MdeModulePkg: Remove NORETURN for PeiCore() > and DxeMain() function > > PeiCore EntryPoint library _ModuleEntryPoint() will call PeiCore(), then call > CpuDeadLoop (). When NORETURN is added for PeiCore(

[edk2] [Patch] MdeModulePkg: Remove NORETURN for PeiCore() and DxeMain() function

2016-06-22 Thread Liming Gao
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