VS2015 reports the following warnings in EDKII codes. 
1) warning C4701: potentially uninitialized local variable used. 
2) warning C4703: potentially uninitialized local pointer variable used. 
3) warning C4459: declaration of 'PrivateData' hides global declaration.
4) warning C4456: declaration of 'q' hides previous local declaration.
5) warning C4312: conversion from 'unsigned long' to 'void *' of greater size. 
6) warning C4311: pointer truncation from 'void *' to 'unsigned long'.

For warning C4701 & C4703, disable them in MdePkg because of the false report.
For warning C4459 & C4456, update MdeModulePkg and OvmfPkg to fix them.
For warning C4312 & C4311, update MdeModulePkg to fix them, and update 
CryptoPkg OpensslLib to disable them.

After apply those changes, MdePkg, MdeModulePkg, UefiCpuPkg, NetworkPkg,
SecurityPkg, ShellPkg, SourceLevelDebugPkg, PcAtChipsetPkg, PerformancePkg,
IntelFrameworkModulePkg, IntelFrameworkPkg, CryptoPkg, IntelFspPkg, 
IntelFspWrapperPkg and FatPkg can pass VS2015.
Ovmf can pass VS2015. Nt32 is failure in VS2015, still under investigation.

Other package owners can choose to fix or disable them in your own packages. 

Liming Gao (6):
  MdePkg: Disable VS2015 warning C4701 & C4703
  MdeModulePkg: Fix VS2015 warning C4459 in DriverSampleDxe
  MdeModulePkg: Fix VS2015 warning C4456 in RegularExpressionDxe
  MdeModulePkg: Fix VS2015 warning C4311 & C4312 in RegularExpressionDxe
  CryptoPkg: Disable VS2015 warning C4311 in OpensslLib
  OvmfPkg: Fix VS2015 warning C4459 in XenBusDxe

 CryptoPkg/Library/OpensslLib/OpensslLib.inf        |  3 +-
 .../Universal/DriverSampleDxe/DriverSample.c       | 72 +++++++++++-----------
 .../RegularExpressionDxe/Oniguruma/enc/unicode.c   | 22 +++----
 .../RegularExpressionDxe/Oniguruma/regexec.c       | 52 ++++++++--------
 .../RegularExpressionDxe/Oniguruma/regint.h        |  8 +--
 .../RegularExpressionDxe/Oniguruma/regparse.c      | 16 ++---
 MdePkg/Include/Ia32/ProcessorBind.h                |  6 +-
 MdePkg/Include/X64/ProcessorBind.h                 |  6 +-
 OvmfPkg/XenBusDxe/XenStore.c                       | 14 ++---
 9 files changed, 100 insertions(+), 99 deletions(-)

-- 
1.9.5.msysgit.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to