diff options
author | Dandan Bi <dandan.bi@intel.com> | 2018-07-30 09:25:11 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2018-08-01 09:00:40 +0800 |
commit | ed8746801e0d9a5fc5fec006efdedac1c09e7bbf (patch) | |
tree | 6031c8a104c2f5bc992853f7360608af8711a339 /ShellPkg | |
parent | 6d9a0a9420167a87d353b53b93fec17ad61b4b61 (diff) | |
download | edk2-ed8746801e0d9a5fc5fec006efdedac1c09e7bbf.tar.gz edk2-ed8746801e0d9a5fc5fec006efdedac1c09e7bbf.tar.bz2 edk2-ed8746801e0d9a5fc5fec006efdedac1c09e7bbf.zip |
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 <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>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|