Skip to content

Fix build on Apple Clang 21 with -Wuninitialized-const-pointer - #48

Merged
aswaterman merged 1 commit into
masterfrom
fix-clang-build
Oct 23, 2026
Merged

aswaterman merged 1 commit into
masterfrom
fix-clang-build

Conversation

@aswaterman

Copy link
Copy Markdown
Member

The RISC-V port neither initializes nor consumes the commonNaN struct, but this raises Clang's hackles when const pointers to these uninitialized structs are passed.

Fix by initializing the struct. This has no performance impact since the callees are always inlined.

See #46

The RISC-V port neither initializes nor consumes the commonNaN
struct, but this raises Clang's hackles when const pointers to
these uninitialized structs are passed.

Fix by initializing the struct.  This has no performance impact
since the callees are always inlined.

See #46

Signed-off-by: Andrew Waterman <andrew@sifive.com>
@aswaterman
aswaterman merged commit 497c81c into master Oct 23, 2026
1 check passed
@aswaterman
aswaterman deleted the fix-clang-build branch October 23, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant