DMTF / libspdm

BSD 3-Clause "New" or "Revised" License
113 stars 104 forks source link

Build failures with GCC on RISC-V #2836

Closed steven-bellock closed 1 month ago

steven-bellock commented 2 months ago
/libspdm/library/spdm_requester_lib/libspdm_req_encap_digests.c: In function ‘libspdm_get_encap_response_digest’:
/libspdm/library/spdm_requester_lib/libspdm_req_encap_digests.c:98:26: error: cast increases required alignment of target type [-Werror=cast-align]
   98 |     key_usage_bit_mask = (spdm_key_usage_bit_mask_t *)((uint8_t *)cert_info +
steven-bellock commented 1 month ago

Can just disable the warning since RISC-V can handle unaligned accesses.