From nobody Tue Apr 30 18:48:25 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1490860023625998.2804995430465; Thu, 30 Mar 2017 00:47:03 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 9324221DFA8FE; Thu, 30 Mar 2017 00:47:01 -0700 (PDT) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D386921DFA8E1 for ; Thu, 30 Mar 2017 00:46:59 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Mar 2017 00:46:59 -0700 Received: from shwde6388.ccr.corp.intel.com ([10.239.9.17]) by fmsmga005.fm.intel.com with ESMTP; 30 Mar 2017 00:46:58 -0700 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490860019; x=1522396019; h=from:to:subject:date:message-id; bh=nIXWCJmf4qu4fj2kT9/6gcKh6UiYSBviRtzl4FQRbps=; b=aNkhccYTt4UhdglTofjy5C5hdI64dQ9gY05K5c1uoboRrvEYc8jcujA+ Iytc9apljv4JYLyE02xJVOjdRWeVYA==; X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,245,1486454400"; d="scan'208";a="82205578" From: Qin Long To: ting.ye@intel.com, eric.dong@intel.com, hao.a.wu@intel.com, edk2-devel@lists.01.org Date: Thu, 30 Mar 2017 15:46:44 +0800 Message-Id: <20170330074644.10580-1-qin.long@intel.com> X-Mailer: git-send-email 2.12.2.windows.1 Subject: [edk2] [Patch] CryptoPkg/BaseCryptLib: Fix Build Warning issue in PEI Module X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The memory free operation is empty function in PEI. The compiler optimization will bring the build warning in openssl/crypto/mem.c: warning C4718: 'CRYPTO_free': recursive call has no side effects, deleting This patch uses '/wd4718' to silence the build warning for PEI module building. Cc: Ting Ye Cc: Eric Dong Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Eric Dong Reviewed-by: Ye Ting =20 --- CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/Lib= rary/BaseCryptLib/PeiCryptLib.inf index fdcd8b95f5..34e18971c8 100644 --- a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf @@ -89,8 +89,9 @@ # # suppress the following warnings so we do not break the build with warn= ings-as-errors: # C4090: 'function' : different 'const' qualifiers + # C4717: 'function call' : recursive call has no side effects, deleting # - MSFT:*_*_*_CC_FLAGS =3D /wd4090 + MSFT:*_*_*_CC_FLAGS =3D /wd4090 /wd4718 =20 GCC:*_GCC44_IA32_CC_FLAGS =3D "-D__cdecl=3D__attribute__((cdecl))" "-D__= declspec(t)=3D__attribute__((t))" =20 --=20 2.12.2.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel