From f663547b08773d813081ebf73dc3c75cad544385 Mon Sep 17 00:00:00 2001 From: dimitry Date: Thu, 17 Oct 2024 12:47:48 +0000 Subject: [PATCH] Fix warning for static vs non-static declaration/definitions In include/opus_custom.h these are declared as OPUS_CUSTOM_EXPORT_STATIC --- celt/celt_decoder.c | 4 ++-- celt/celt_encoder.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/celt/celt_decoder.c b/celt/celt_decoder.c index 743c2031b..97f033780 100644 --- a/celt/celt_decoder.c +++ b/celt/celt_decoder.c @@ -166,7 +166,7 @@ int celt_decoder_get_size(int channels) return opus_custom_decoder_get_size(mode, channels); } -OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_get_size(const CELTMode *mode, int channels) +int opus_custom_decoder_get_size(const CELTMode *mode, int channels) { int size = sizeof(struct CELTDecoder) + (channels*(DECODE_BUFFER_SIZE+mode->overlap)-1)*sizeof(celt_sig) @@ -205,7 +205,7 @@ int celt_decoder_init(CELTDecoder *st, opus_int32 sampling_rate, int channels) return OPUS_OK; } -OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_init(CELTDecoder *st, const CELTMode *mode, int channels) +int opus_custom_decoder_init(CELTDecoder *st, const CELTMode *mode, int channels) { if (channels < 0 || channels > 2) return OPUS_BAD_ARG; diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c index 7f32a801c..0463fade0 100644 --- a/celt/celt_encoder.c +++ b/celt/celt_encoder.c @@ -133,7 +133,7 @@ int celt_encoder_get_size(int channels) return opus_custom_encoder_get_size(mode, channels); } -OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_get_size(const CELTMode *mode, int channels) +int opus_custom_encoder_get_size(const CELTMode *mode, int channels) { int size = sizeof(struct CELTEncoder) + (channels*mode->overlap-1)*sizeof(celt_sig) /* celt_sig in_mem[channels*mode->overlap]; */