From f663ed8a328a6d5007d3f03685f08cfceb506105 Mon Sep 17 00:00:00 2001 From: Qin Long Date: Thu, 30 Mar 2017 15:53:21 +0800 Subject: CryptoPkg/BaseCryptLib: Fix Build Warning issue in PEI Module 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 --- CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CryptoPkg/Library') diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf index fdcd8b9..f1f709e 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 + # C4718: '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))" -- cgit v1.1