VS2017 builds for X64 are failing due to the use of the memset intrinsic. The local variable GopVersion is an array that is initialied in the declaration. Update to use ZeroMem() to intialize GopVersion.
Cc: Zailiang Sun <zailiang....@intel.com> Cc: Gary Lin <g...@suse.com> Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> --- .../Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c b/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c index fcd9e566ae..3815c8fa9c 100644 --- a/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c +++ b/Platform/Intel/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c @@ -493,9 +493,10 @@ SetGOPVersionCallback ( IN VOID *Context ) { - CHAR16 GopVersion[16] = {0}; + CHAR16 GopVersion[16]; EFI_STATUS Status; + ZeroMem (GopVersion, sizeof (GopVersion)); Status = GetGOPDriverVersion(GopVersion); if(!EFI_ERROR(Status)) { StrCpy((CHAR16*)&(mIgdOpRegion.OpRegion->Header.GOPV[0]), GopVersion); -- 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#45292): https://edk2.groups.io/g/devel/message/45292 Mute This Topic: https://groups.io/mt/32815340/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-