Skip to content

Fix clang 21 unterminated-string warnings in wolfTPM's SPDM unit test #32

Description

@aidangarske

Context

clang 21 warns -Wunterminated-string-initialization on byte plain[16] = "..." in wolfTPM src/spdm/unit_test.c (lines 2263 and 2299). The same pattern was already fixed in wolfSPDM's test/unit_test.c.

Origin

aidangarske/wolfTPM branch spdm-use-wolfspdm

What is needed

  • Use unsized arrays or explicit byte lists so the initializer fits.

Blockers and dependencies

No response

Acceptance criteria

wolfTPM builds its SPDM unit test warning-free with clang 21.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: cleanup, warnings, hardware-gated or future worktodoDeferred work tracked for later

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions