SecurityPkg/SpdmCryptLib: Fix CLANG 20.1.0 error

Some of the spdmlib crypto functions return 'false' in
functions that return a pointer to indicate a null
return. false is mapped to FALSE to cover other usages
to return a boolean value.

Add -Wno-non-literal-null-conversion for CLANGPDB and
CLANGDWARF to ignore these types of errors from CLANG
builds within this one library build that uses the
spdmlib git submodule.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Michael D Kinney
2025-05-19 12:22:14 -07:00
committed by mergify[bot]
parent cbbd0f747f
commit 18164e8c69

View File

@ -43,3 +43,7 @@
BaseCryptLib
RngLib
MemLibWrapper
[BuildOptions]
*_CLANGPDB_*_CC_FLAGS = -Wno-non-literal-null-conversion
*_CLANGDWARF_*_CC_FLAGS = -Wno-non-literal-null-conversion