UefiCpuPkg/MpInitLib: Fix VS2012 build failure
authorEric Dong <eric.dong@intel.com>
Fri, 20 Jul 2018 01:36:41 +0000 (09:36 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 20 Jul 2018 01:36:41 +0000 (09:36 +0800)
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/Library/MpInitLib/Microcode.c

index efda143..d84344c 100644 (file)
@@ -63,6 +63,11 @@ MicrocodeDetect (
   UINT32                                  ProcessorFlags;\r
   UINT32                                  ThreadId;\r
 \r
+  //\r
+  // set ProcessorFlags to suppress incorrect compiler/analyzer warnings\r
+  //\r
+  ProcessorFlags = 0;\r
+\r
   if (CpuMpData->MicrocodePatchRegionSize == 0) {\r
     //\r
     // There is no microcode patches\r