Skip to content

build: Need clang 21+ for nonstring attribute#3912

Merged
andypugh merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_clang-attr-nonstring
Apr 8, 2026
Merged

build: Need clang 21+ for nonstring attribute#3912
andypugh merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_clang-attr-nonstring

Conversation

@BsAtHome
Copy link
Copy Markdown
Contributor

@BsAtHome BsAtHome commented Apr 8, 2026

Building with clang on Debian 12 (bookworm; clang 14) and Debian 13 (trixie; clang 19) will result in a warning about the nonstring attribute not being valid. You need newer clang 21+ for this to work.
This PR adds a check to determine the version of clang and use/suppress the use of the attribute depending version found.

@andypugh andypugh merged commit 74e7ea5 into LinuxCNC:master Apr 8, 2026
14 checks passed
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.

2 participants