Skip to content

[BUG] better to ban variable length arrays #15572

@yamt

Description

@yamt

Description / Steps to reproduce the issue

it seems that we use variable length array (VLA) here and there.
eg.

struct iovec bufs[2 + msg->msg_iovlen];

VLA is a C99 feature and should not be used in the common part of the OS. i guess it's better to add -Wvla there.

On which OS does this issue occur?

[OS: Mac]

What is the version of your OS?

macOS 15.2

NuttX Version

master

Issue Architecture

[Arch: all]

Issue Area

[Area: Other]

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: allIssues that apply to all architecturesOS: MacIssues related to MacOS (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions