]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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 efda143e67198c19b14ad0d28591da3e392e9371..d84344c6f56a96fd89140cc0c5935df4b54d1f08 100644 (file)
@@ -63,6 +63,11 @@ MicrocodeDetect (
   UINT32                                  ProcessorFlags;\r
   UINT32                                  ThreadId;\r
 \r
   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
   if (CpuMpData->MicrocodePatchRegionSize == 0) {\r
     //\r
     // There is no microcode patches\r