From 79795643ce5bc216352c96793c41aa00d0ab9740 Mon Sep 17 00:00:00 2001 From: Antoine Soulier Date: Mon, 8 May 2023 09:42:56 -0700 Subject: [PATCH] feature: Enable pedantic to improve portability --- Makefile | 2 +- src/tns.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);