From 3a7daf9eb028bdbfc16db12c4625cca10a083ba1 Mon Sep 17 00:00:00 2001 From: Marvin H?user Date: Sun, 19 Jun 2016 09:31:16 +0800 Subject: MdeModulePkg/Core: Decorate phase-transition functions with NORETURN. This patch adds the NORETURN attribute to functions that transfer to other phases, along with an UNREACHABLE() call at the end to avoid false warnings. DxeIpl has been excluded as its main function returns a status. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marvin Haeuser Reviewed-by: Liming Gao --- MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c') diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c index c34067e118..8380fd78be 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -235,6 +235,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_LOAD_FIXED_ADDRESS_CONFIGURATION_TABLE gLoa **/ VOID +NORETURN EFIAPI DxeMain ( IN VOID *HobStart @@ -524,6 +525,8 @@ DxeMain ( // ASSERT (FALSE); CpuDeadLoop (); + + UNREACHABLE (); } -- cgit v1.2.3