From 649f70097c7c37ea007da020c5e836d7933f100b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 28 Apr 2022 23:06:12 +0200 Subject: [PATCH] lc3-google: fix compiler warning --- 3rd-party/lc3-google/include/lc3_private.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3rd-party/lc3-google/include/lc3_private.h b/3rd-party/lc3-google/include/lc3_private.h index c59ff53d4..45a8bcb53 100644 --- a/3rd-party/lc3-google/include/lc3_private.h +++ b/3rd-party/lc3-google/include/lc3_private.h @@ -103,7 +103,8 @@ struct lc3_encoder { lc3_ltpf_analysis_t ltpf; lc3_spec_analysis_t spec; - float *xs, *xf, s[0]; + // BK: s[0] -> s[1] to avoid compiler warning for zero sized warning + float *xs, *xf, s[1]; }; #define LC3_ENCODER_BUFFER_COUNT(dt_us, sr_hz) \ @@ -139,7 +140,8 @@ struct lc3_decoder { lc3_ltpf_synthesis_t ltpf; lc3_plc_state_t plc; - float *xs, *xd, *xg, s[0]; + // BK: s[0] -> s[1] to avoid compiler warning for zero sized warning + float *xs, *xd, *xg, s[1]; }; #define LC3_DECODER_BUFFER_COUNT(dt_us, sr_hz) \