From ba601bddf8a36b4b63704596842c69b412741bbb Mon Sep 17 00:00:00 2001 From: "Shi, Steven" Date: Wed, 3 Aug 2016 17:43:05 +0800 Subject: [PATCH] ShellPkg-UefiShellTftpCommandLib: Replace compiler builtin Use explicit CopyMem to replace compiler builtin to do the structure values assignment. This change is needed to pass CLANG38 build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Steven Shi Reviewed-by: Jaben Carsey --- ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c diff --git a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c old mode 100644 new mode 100755 index 666ee9d8ea..5c50797631 --- a/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c +++ b/ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c @@ -342,7 +342,7 @@ ShellCommandRunTftp ( goto Error; } - Mtftp4ConfigData = DefaultMtftp4ConfigData; + CopyMem (&Mtftp4ConfigData, &DefaultMtftp4ConfigData, sizeof (EFI_MTFTP4_CONFIG_DATA)); // // Check the host IPv4 address -- 2.39.2