feature: Enable pedantic to improve portability

This commit is contained in:
Antoine Soulier
2023-05-08 09:42:56 -07:00
parent a48fdbc88c
commit 79795643ce
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
#
+2 -2
View File
@@ -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);