From 9b7242f5dec7649b878a4058f893103885520bf7 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Fri, 20 Jul 2018 09:36:41 +0800 Subject: 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 --- UefiCpuPkg/Library/MpInitLib/Microcode.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'UefiCpuPkg') diff --git a/UefiCpuPkg/Library/MpInitLib/Microcode.c b/UefiCpuPkg/Library/MpInitLib/Microcode.c index efda143..d84344c 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 -- cgit v1.1