From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) 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==; 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 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,245,1486454400"; d="scan'208";a="82205578" 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 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: [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: , X-List-Received-Date: Thu, 30 Mar 2017 07:47:00 -0000 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 --- CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/Library/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 warnings-as-errors: # C4090: 'function' : different 'const' qualifiers + # C4717: 'function call' : recursive call has no side effects, deleting # - MSFT:*_*_*_CC_FLAGS = /wd4090 + MSFT:*_*_*_CC_FLAGS = /wd4090 /wd4718 GCC:*_GCC44_IA32_CC_FLAGS = "-D__cdecl=__attribute__((cdecl))" "-D__declspec(t)=__attribute__((t))" -- 2.12.2.windows.1