Skip to content

Commit

Permalink
CryptoPkg/BaseCryptLib: Fix Build Warning issue in PEI Module
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Eric Dong <[email protected]>
Cc: Hao Wu <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qin Long <[email protected]>
Reviewed-by: Eric Dong <[email protected]>
Reviewed-by: Ye Ting <[email protected]>
  • Loading branch information
Qin Long committed Mar 30, 2017
1 parent d3017dd commit f663ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
Original file line number Diff line number Diff line change
Expand Up @@ -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))"

Expand Down

0 comments on commit f663ed8

Please sign in to comment.