Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: 3928407 Remove VLAs #142

Open
wants to merge 2 commits into
base: vNext
Choose a base branch
from
Open

issue: 3928407 Remove VLAs #142

wants to merge 2 commits into from

Conversation

pasis
Copy link
Member

@pasis pasis commented Apr 26, 2024

TODO Complete removal from sock-redirect.cpp and sockinfo_tcp.cpp

Description

clang-18 generates a warning that VLA is a clang extension.

What

Remove VLAs.

Why ?

Fix clang-18 build.

Change type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

Check list

  • Code follows the style de facto guidelines of this project
  • Comments have been inserted in hard to understand places
  • Documentation has been updated (if necessary)
  • Test has been added (if possible)

Remove VLAs and simplify net_device_val::get_up_and_active_slaves().

Signed-off-by: Dmytro Podgornyi <[email protected]>
clang-18 generates a warning that VLA is a clang extension. Allocate
the arrays on heap instead of stack.

Signed-off-by: Dmytro Podgornyi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft Not to review yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant