]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2012 build failure
authorDandan Bi <dandan.bi@intel.com>
Mon, 30 Jul 2018 01:25:11 +0000 (09:25 +0800)
committerEric Dong <eric.dong@intel.com>
Wed, 1 Aug 2018 01:00:40 +0000 (09:00 +0800)
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.Fedorov@arm.com>
cc: Ruiyu Ni <ruiyu.ni@intel.com>
cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c

index 6d3bc451acd6386774f74c21a0554ab1e541b4d9..630c41b71d28cab70ac5e9344de4e55358a7f694 100644 (file)
@@ -476,6 +476,7 @@ ParseAcpi (
   UINT32  Index;\r
   UINT32  Offset;\r
   BOOLEAN HighLight;\r
+  UINTN   OriginalAttribute;\r
 \r
   Offset = 0;\r
 \r
@@ -484,7 +485,6 @@ ParseAcpi (
 \r
   if (Trace && (AsciiName != NULL)){\r
     HighLight = GetColourHighlighting ();\r
-    UINTN   OriginalAttribute;\r
 \r
     if (HighLight) {\r
       OriginalAttribute = gST->ConOut->Mode->Attribute;\r