From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=dandan.bi@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C34D12097E272 for ; Tue, 4 Sep 2018 17:45:31 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2018 17:45:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,331,1531810800"; d="scan'208";a="71644221" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 04 Sep 2018 17:44:09 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 4 Sep 2018 17:44:09 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 4 Sep 2018 17:44:09 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.226]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0319.002; Wed, 5 Sep 2018 08:44:07 +0800 From: "Bi, Dandan" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Gao, Liming" , "Wang, Jian J" Thread-Topic: [PATCH] MdeModulePkg PeiCore: Fix VS2012 build failure Thread-Index: AQHUQ+04ZXHJ1uqCtE6Ngi+8/i+FEqTg2xHA Date: Wed, 5 Sep 2018 00:44:07 +0000 Message-ID: <3C0D5C461C9E904E8F62152F6274C0BB3BB71A74@shsmsx102.ccr.corp.intel.com> References: <1536023903-10880-1-git-send-email-star.zeng@intel.com> In-Reply-To: <1536023903-10880-1-git-send-email-star.zeng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg PeiCore: Fix VS2012 build failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2018 00:45:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Dandan Bi Thanks, Dandan -----Original Message----- From: Zeng, Star=20 Sent: Tuesday, September 4, 2018 9:18 AM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Bi, Dandan ; Gao= , Liming ; Wang, Jian J Subject: [PATCH] MdeModulePkg PeiCore: Fix VS2012 build failure fwvol.c(1572) : warning C4701: potentially uninitialized local variable 'St= atus' used The build failure is caused by 0e042d0ad76157ac9bad17bb4e1ff2919ca0d8f4 for https://bugzilla.tianocore.org/show_bug.cgi?id=3D1131 This patch initializes Status to fix the build failure. Cc: Dandan Bi Cc: Liming Gao Cc: Jian J Wang Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng --- MdeModulePkg/Core/Pei/FwVol/FwVol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/Fw= Vol/FwVol.c index 7ea503a10fb5..5629c9a1ce20 100644 --- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c +++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c @@ -1412,6 +1412,8 @@ ProcessFvFile ( ParentFvHandle =3D ParentFvCoreHandle->FvHandle; ParentFvPpi =3D ParentFvCoreHandle->FvPpi; =20 + Status =3D EFI_SUCCESS; + // // Find FvImage(s) in FvFile // -- 2.7.0.windows.1