Hi, When I build this module with VS2015, no warning message will report. In fact, we disable VS2015 warning C4701 & C4703 in MdePkg/Include/Ia32/ProcessorBind.h and MdePkg/Include/X64/ProcessorBind.h. They should not be reported in build time. So, could you let me know how you meet VS2015 build warning?
Thanks Liming -----Original Message----- From: edk2-devel [mailto:[email protected]] On Behalf Of Anbazhagan, Baraneedharan Sent: Tuesday, December 22, 2015 12:27 AM To: [email protected]; Tian, Feng Subject: [edk2] [PATCH] MdeModulePkg/XhciPei: Fix VS2015 build warning Initialize EvTrb local variable Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Baraneedharan Anbazhagan <[email protected]> --- MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c b/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c index 3632e8a..479319e 100644 --- a/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c +++ b/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c @@ -1050,6 +1050,7 @@ XhcPeiInitializeDeviceSlot ( CmdTrb.CycleBit = 1; CmdTrb.Type = TRB_TYPE_EN_SLOT; + EvtTrb = NULL; Status = XhcPeiCmdTransfer ( Xhc, (TRB_TEMPLATE *) (UINTN) &CmdTrb, @@ -1257,6 +1258,7 @@ XhcPeiInitializeDeviceSlot64 ( CmdTrb.CycleBit = 1; CmdTrb.Type = TRB_TYPE_EN_SLOT; + EvtTrb = NULL; Status = XhcPeiCmdTransfer ( Xhc, (TRB_TEMPLATE *) (UINTN) &CmdTrb, -- 2.6.3.windows.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

