From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by ml01.01.org (Postfix) with ESMTP id 866D31A1E2E for ; Tue, 2 Aug 2016 23:48:57 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 02 Aug 2016 23:48:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,464,1464678000"; d="scan'208";a="743484604" Received: from xiahui-mobl.ccr.corp.intel.com (HELO JSHI19-MOBL2.ccr.corp.intel.com) ([10.255.25.75]) by FMSMGA003.fm.intel.com with ESMTP; 02 Aug 2016 23:48:55 -0700 From: "Shi, Steven" To: edk2-devel@lists.01.org, liming.gao@intel.com, jaben.carsey@intel.com Cc: afish@apple.com, michael.d.kinney@intel.com, Steven Shi Date: Wed, 3 Aug 2016 14:48:22 +0800 Message-Id: <1470206903-18256-4-git-send-email-steven.shi@intel.com> X-Mailer: git-send-email 2.8.1.windows.1 In-Reply-To: <1470206903-18256-1-git-send-email-steven.shi@intel.com> References: <1470206903-18256-1-git-send-email-steven.shi@intel.com> Subject: [PATCH 3/4] ShellPkg-UefiShellTftpCommandLib: Replace compiler builtin X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2016 06:48:57 -0000 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 666ee9d..5c50797 --- 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.7.4