Improve portability of telemetry code to allow it to be compiled by msvc unconditionally.
Remove use of VLA and instead dynamically allocate. MSVC will never implement VLAs due to misuse / security concerns. Remove use of ranged based initializer (a gcc extension) instead just explicitly initialize individual array elements. Tyler Retzlaff (2): telemetry: use malloc instead of variable length array telemetry: use portable syntax to initialize array lib/telemetry/telemetry_data.c | 20 ++++++++++++++------ lib/telemetry/telemetry_json.h | 32 +++++++++++++++++++++++--------- 2 files changed, 37 insertions(+), 15 deletions(-) -- 1.8.3.1