At latest edk2 version, there is build failure when building ShellPkg
with VS2012x86, which results from uninitialized local variables.
Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
UINT8 Checksum;\r
UINTN OriginalAttribute;\r
\r
+ //\r
+ // set local variables to suppress incorrect compiler/analyzer warnings\r
+ //\r
+ OriginalAttribute = 0;\r
ByteCount = 0;\r
Checksum = 0;\r
\r
BOOLEAN HighLight;\r
UINTN OriginalAttribute;\r
\r
+ //\r
+ // set local variables to suppress incorrect compiler/analyzer warnings\r
+ //\r
+ OriginalAttribute = 0;\r
Offset = 0;\r
\r
// Increment the Indent\r
BOOLEAN Log;\r
BOOLEAN HighLight;\r
\r
+ //\r
+ // set local variables to suppress incorrect compiler/analyzer warnings\r
+ //\r
+ OriginalAttribute = 0;\r
SignaturePtr = (UINT8*)(UINTN)&Signature;\r
Log = FALSE;\r
HighLight = GetColourHighlighting ();\r
PARSE_ACPI_TABLE_PROC RsdpParserProc;\r
BOOLEAN Trace;\r
\r
+ //\r
+ // set local variables to suppress incorrect compiler/analyzer warnings\r
+ //\r
+ EfiConfigurationTable = NULL;\r
+ OriginalAttribute = 0;\r
+\r
// Search the table for an entry that matches the ACPI Table Guid\r
FoundAcpiTable = FALSE;\r
for (Index = 0; Index < SystemTable->NumberOfTableEntries; Index++) {\r