Skip to content

silence VLA warnings when compiling with clang - #3420

Open
jdtournier wants to merge 1 commit into
masterfrom
silence_clang_VLA_warnings
Open

silence VLA warnings when compiling with clang#3420
jdtournier wants to merge 1 commit into
masterfrom
silence_clang_VLA_warnings

Conversation

@jdtournier

Copy link
Copy Markdown
Member

Use clang-specific pragmas to silence the many warnings about the use of variable-length arrays.

@jdtournier
jdtournier requested a review from a team July 17, 2026 17:19
@jdtournier jdtournier self-assigned this Jul 17, 2026

@Lestropie Lestropie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine for master.

For dev I think removing the functionality altogether is more appealing. There are very few usages remaining and I don't see any strong justification for why those particular usages should be VLA unlike eg. std::vector used in every other circumstance. The only one that arguably justifies stack memory use is MR::printf(), and that would disappear with #3339.

@Lestropie Lestropie mentioned this pull request Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants