From: Dandan Bi Date: Mon, 30 Jul 2018 01:25:11 +0000 (+0800) Subject: ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2012 build failure X-Git-Tag: edk2-stable201903~1314 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=ed8746801e0d9a5fc5fec006efdedac1c09e7bbf ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2012 build failure Fix following build error: xxx\AcpiParser.c(487) : error C2275: 'UINTN' : illegal use of this type as an expression xxx\ProcessorBind.h(224) : see declaration of 'UINTN' xxx\AcpiParser.c(487) : error C2146: syntax error : missing ';' before identifier 'OriginalAttribute' xxx\AcpiParser.c(487) : error C2065: 'OriginalAttribute' : undeclared identifier ...... cc: Alexei Fedorov cc: Ruiyu Ni cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi Reviewed-by: Jaben Carsey --- diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c index 6d3bc451ac..630c41b71d 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c @@ -476,6 +476,7 @@ ParseAcpi ( UINT32 Index; UINT32 Offset; BOOLEAN HighLight; + UINTN OriginalAttribute; Offset = 0; @@ -484,7 +485,6 @@ ParseAcpi ( if (Trace && (AsciiName != NULL)){ HighLight = GetColourHighlighting (); - UINTN OriginalAttribute; if (HighLight) { OriginalAttribute = gST->ConOut->Mode->Attribute;