summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
diff options
context:
space:
mode:
authorOliver Steffen <osteffen@redhat.com>2025-11-05 20:35:16 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-11-21 19:33:06 +0300
commit56f2d5890840aa92e714e056706223f113063cc8 (patch)
treef87d65b6bedc87b644c925c39a9f73a4304810f2 /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
parent9ff73832ea0440b86fa0dfa42158fce1ef3b57d2 (diff)
downloadedk2-56f2d5890840aa92e714e056706223f113063cc8.tar.xz
SecurityPkg/SpdmSecurityLib: Fix incompatible pointer types
GCC 15 enforces stricter type checking for function pointers. When passing SPDM transport layer callbacks to libspdm_register_transport_layer_func, the function pointer types are incompatible due to differences in boolean parameter types. The EDK2 uses BOOLEAN (UINT8) while libspdm uses C99 bool (_Bool). Although these types have the same size and representation, GCC 15 treats them as incompatible. Add explicit casts to libspdm_transport_encode_message_func and libspdm_transport_decode_message_func at the call site to resolve the type mismatch. This is safe as the types have identical binary representation and the functions are only called through these pointers by libspdm. Signed-off-by: Oliver Steffen <osteffen@redhat.com> (cherry picked from commit aca8f995405b2bdc48997ce5b0daa975225164e6)
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
0 files changed, 0 insertions, 0 deletions