]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg PeiCore: Fix VS2012 build failure
authorStar Zeng <star.zeng@intel.com>
Tue, 4 Sep 2018 01:15:42 +0000 (09:15 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 5 Sep 2018 05:17:10 +0000 (13:17 +0800)
fwvol.c(1572) : warning C4701: potentially uninitialized
local variable 'Status' used

The build failure is caused by
0e042d0ad76157ac9bad17bb4e1ff2919ca0d8f4 for
https://bugzilla.tianocore.org/show_bug.cgi?id=1131

This patch initializes Status to fix the build failure.

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
MdeModulePkg/Core/Pei/FwVol/FwVol.c

index 7ea503a10fb5009bd298eba6aff8fd96c8124b11..5629c9a1ce206b1375cca694c3405baa58612145 100644 (file)
@@ -1412,6 +1412,8 @@ ProcessFvFile (
   ParentFvHandle = ParentFvCoreHandle->FvHandle;\r
   ParentFvPpi    = ParentFvCoreHandle->FvPpi;\r
 \r
+  Status = EFI_SUCCESS;\r
+\r
   //\r
   // Find FvImage(s) in FvFile\r
   //\r