From 42a443d5cdf07b55afd92ae1d8e9949c1deed310 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Thu, 22 Jun 2023 13:41:43 -0600 Subject: [PATCH] SecurityPkg: Fix debug build For some reason only DEBUG builds fail because of the unused variable. Signed-off-by: Tim Crawford --- .../SecureBootConfigDxe/SecureBootConfigImpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c index c72279fa856c..ec2fb31e9ecd 100644 --- a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c +++ b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c @@ -4324,7 +4324,7 @@ SecureBootCallback ( UINT8 *SecureBootEnable; UINT8 *Pk; UINT8 *SecureBootMode; - UINT8 *SetupMode; + //UINT8 *SetupMode; CHAR16 PromptString[100]; EFI_DEVICE_PATH_PROTOCOL *File; UINTN NameLength; @@ -4336,7 +4336,7 @@ SecureBootCallback ( Status = EFI_SUCCESS; SecureBootEnable = NULL; SecureBootMode = NULL; - SetupMode = NULL; + //SetupMode = NULL; File = NULL; EnrollKeyErrorCode = None_Error;