diff options
author | Eric Dong <eric.dong@intel.com> | 2018-07-20 09:36:41 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2018-07-20 09:36:41 +0800 |
commit | 9b7242f5dec7649b878a4058f893103885520bf7 (patch) | |
tree | ed1ab4de70cf2030d462a17a4ec2b098747d7a83 /UefiCpuPkg | |
parent | a234383c5bc28c5545b2988edc59f0cbdb123afd (diff) | |
download | edk2-9b7242f5dec7649b878a4058f893103885520bf7.tar.gz edk2-9b7242f5dec7649b878a4058f893103885520bf7.tar.bz2 edk2-9b7242f5dec7649b878a4058f893103885520bf7.zip |
UefiCpuPkg/MpInitLib: Fix VS2012 build failure
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>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r-- | UefiCpuPkg/Library/MpInitLib/Microcode.c | 5 |
1 files changed, 5 insertions, 0 deletions
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
|