diff --git a/Makefile b/Makefile index 3f99ca3..cfee652 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ AS := $(if $(AS)=as,$(CC),$(AS)) LD := $(if $(LD)=ld,$(CC),$(LD)) CFLAGS := $(if $(DEBUG),-O0 -g,-O3) -CFLAGS += -std=c11 -Wall -Wextra -Wdouble-promotion -Wvla +CFLAGS += -std=c11 -Wall -Wextra -Wdouble-promotion -Wvla -pedantic # diff --git a/src/tns.c b/src/tns.c index 28a854f..19bf149 100644 --- a/src/tns.c +++ b/src/tns.c @@ -254,7 +254,7 @@ static void unquantize_rc(const int *rc_q, int rc_order, float rc[8]) */ LC3_HOT static void forward_filtering( enum lc3_dt dt, enum lc3_bandwidth bw, - const int rc_order[2], const float rc[2][8], float *x) + const int rc_order[2], float (* const rc)[8], float *x) { int nfilters = 1 + (bw >= LC3_BANDWIDTH_SWB); int nf = LC3_NE(dt, bw) >> (nfilters - 1); @@ -295,7 +295,7 @@ LC3_HOT static void forward_filtering( */ LC3_HOT static void inverse_filtering( enum lc3_dt dt, enum lc3_bandwidth bw, - const int rc_order[2], const float rc[2][8], float *x) + const int rc_order[2], float (* const rc)[8], float *x) { int nfilters = 1 + (bw >= LC3_BANDWIDTH_SWB); int nf = LC3_NE(dt, bw) >> (nfilters - 1);