Reviewed-by: Jaben Carsey <jaben.car...@intel.com> > -----Original Message----- > From: Bi, Dandan > Sent: Sunday, July 29, 2018 7:27 PM > To: edk2-devel@lists.01.org > Cc: Alexei Fedorov <alexei.fedo...@arm.com>; Ni, Ruiyu > <ruiyu...@intel.com>; Carsey, Jaben <jaben.car...@intel.com> > Subject: [patch 1/4] ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2012 > build failure > Importance: High > > 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 <alexei.fedo...@arm.com> > cc: Ruiyu Ni <ruiyu...@intel.com> > cc: Jaben Carsey <jaben.car...@intel.com> > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Dandan Bi <dandan...@intel.com> > --- > ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 > @@ -474,19 +474,19 @@ ParseAcpi ( > ) > { > UINT32 Index; > UINT32 Offset; > BOOLEAN HighLight; > + UINTN OriginalAttribute; > > Offset = 0; > > // Increment the Indent > gIndent += Indent; > > if (Trace && (AsciiName != NULL)){ > HighLight = GetColourHighlighting (); > - UINTN OriginalAttribute; > > if (HighLight) { > OriginalAttribute = gST->ConOut->Mode->Attribute; > gST->ConOut->SetAttribute ( > gST->ConOut, > -- > 2.14.3.windows.1
_______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel