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

warning: variable length array 'txBuffer' is used [-Wvla] #89

Open
drmpf opened this issue Jun 26, 2020 · 0 comments · May be fixed by #141
Open

warning: variable length array 'txBuffer' is used [-Wvla] #89

drmpf opened this issue Jun 26, 2020 · 0 comments · May be fixed by #141
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@drmpf
Copy link

drmpf commented Jun 26, 2020

Turning on Full compiler warnings give a number of these types of warnings

..Documents\Arduino\libraries\ArduinoBLE\src\utility\HCI.cpp:472:41: warning: variable length array 'txBuffer' is used [-Wvla]
   uint8_t txBuffer[sizeof(pktHdr) + plen];

uint8_t txBuffer[sizeof(pktHdr) + plen];

These warnings from the library make it difficult for the library user to monitor the compilation output for important warnings for problems in their own code.

Please fix or suppress these warnings if possible.

@ollie1400 ollie1400 linked a pull request Nov 14, 2020 that will close this issue
@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Mar 9, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Aug 7, 2023
@per1234 per1234 linked a pull request Mar 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants