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

waf: stop clang complaining about variable-length stack arrays #29224

Merged

Conversation

peterbarker
Copy link
Contributor

Gets rid of all of these:

../../libraries/AP_BattMonitor/AP_BattMonitor_SMBus.cpp:156:18: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
  156 |     uint8_t buff[read_size];    // buffer to hold results
      |                  ^~~~~~~~~

.... which there are a lot of in ArduPilot!

@tridge tridge merged commit 400699f into ArduPilot:master Feb 5, 2025
100 checks passed
@peterbarker peterbarker deleted the pr/clang-dynamic-array-warning branch February 5, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants