diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-05-13 17:50:41 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-05-17 10:09:52 +0800 |
commit | 17da28f3e2451524ebf50b55ee302b5d0abdb98e (patch) | |
tree | e5bceb47dfacecaff3369b1f050906e59cb19beb /MdeModulePkg/Library | |
parent | e7cbd1490fea53f84e71f33987e2ad2e916febb2 (diff) | |
download | edk2-platforms-17da28f3e2451524ebf50b55ee302b5d0abdb98e.tar.xz |
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 <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r-- | MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerCustomizedUiSupport.c index b32cbdbf00..177b2498d3 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);
|