mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
clang compiler warnings: Fix -Wunused-function
This patch fixes clang compilers warnings for unused functions. Specifically: * channels/chan_iax2: removed user_ref function * main/dsp.c: removed goertzel_update function Review: https://reviewboard.asterisk.org/r/4527 ASTERISK-24917 Reported by: dkdegroot patches: rb4527.patch submitted by dkdegroot (License 6600) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@433678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
10
main/dsp.c
10
main/dsp.c
@@ -330,16 +330,6 @@ static inline void goertzel_sample(goertzel_state_t *s, short sample)
|
||||
}
|
||||
}
|
||||
|
||||
static inline void goertzel_update(goertzel_state_t *s, short *samps, int count)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
goertzel_sample(s, samps[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static inline float goertzel_result(goertzel_state_t *s)
|
||||
{
|
||||
goertzel_result_t r;
|
||||
|
||||
Reference in New Issue
Block a user