From 17da28f3e2451524ebf50b55ee302b5d0abdb98e Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 13 May 2016 17:50:41 +0800 Subject: MdeModulePkg/BootMaintenanceManagerUiLib: remove unused but set variable As-is, the code triggers [-Werror=unused-but-set-variable] with GCC. Fixes: a85be3ae48a8aaa40b755cd0ff7270c67cfed585 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Liming Gao Reviewed-by: Eric Dong --- .../BootMaintenanceManagerCustomizedUiSupport.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.c index b32cbdb..177b249 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.c @@ -42,7 +42,6 @@ BmmCreateBootNextMenu( ) { BM_MENU_ENTRY *NewMenuEntry; - BM_LOAD_CONTEXT *NewLoadContext; UINTN NumberOfOptions; UINT16 Index; VOID *OptionsOpCodeHandle; @@ -59,7 +58,6 @@ BmmCreateBootNextMenu( for (Index = 0; Index < BootOptionMenu.MenuNumber; Index++) { NewMenuEntry = BOpt_GetMenuEntry (&BootOptionMenu, Index); - NewLoadContext = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext; StringBuffer = HiiGetString (HiiHandle, NewMenuEntry->DisplayStringToken, NULL); ASSERT (StringBuffer != NULL); -- cgit v1.1