`-Wvla` compiler warnings
zfields opened this issue · 3 comments
zfields commented
~/Development/Arduino/libraries/Arduino_DebugUtils/src/Arduino_DebugUtils.cpp: In member function 'void Arduino_DebugUtils::vPrint(const char*, va_list)':
~/Development/Arduino/libraries/Arduino_DebugUtils/src/Arduino_DebugUtils.cpp:139:28: warning: variable length array 'msg_buf' is used [-Wvla]
char msg_buf[msg_buf_size];
^
zfields commented
arduino-cli compile --verbose --warnings=all --build-property "build.extra_flags=-Wno-unused-variable -Wno-implicit-fallthrough -Wno-psabi -Wno-deprecated-copy -Wno-missing-field-initializers -Wno-delete-non-virtual-dtor -Wno-sign-compare -Og -g" --fqbn arduino:mbed_opta:opta <dev folder>
per1234 commented
Thanks for taking the time to submit an issue @zfields.
I see you have also reported this in the issue tracker for the "DebugUtils" library: arduino-libraries/Arduino_DebugUtils#44.
Since the warning is not caused by anything in the codebase of the "ArduinoIoTCloud" library, I will close this as off topic.
zfields commented
Ah, yes, you are correct, this was a mispost.
Thank you for your patience. 🙏