From: Eric Dong Date: Fri, 20 Jul 2018 01:36:41 +0000 (+0800) Subject: UefiCpuPkg/MpInitLib: Fix VS2012 build failure X-Git-Tag: edk2-stable201903~1388 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=9b7242f5dec7649b878a4058f893103885520bf7 UefiCpuPkg/MpInitLib: Fix VS2012 build failure Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong --- diff --git a/UefiCpuPkg/Library/MpInitLib/Microcode.c b/UefiCpuPkg/Library/MpInitLib/Microcode.c index efda143e67..d84344c6f5 100644 --- a/UefiCpuPkg/Library/MpInitLib/Microcode.c +++ b/UefiCpuPkg/Library/MpInitLib/Microcode.c @@ -63,6 +63,11 @@ MicrocodeDetect ( UINT32 ProcessorFlags; UINT32 ThreadId; + // + // set ProcessorFlags to suppress incorrect compiler/analyzer warnings + // + ProcessorFlags = 0; + if (CpuMpData->MicrocodePatchRegionSize == 0) { // // There is no microcode patches