[asterisk-commits] mjordan: branch 11 r433678 - in /branches/11: channels/chan_iax2.c main/dsp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Mar 28 07:18:02 CDT 2015
Author: mjordan
Date: Sat Mar 28 07:17:45 2015
New Revision: 433678
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433678
Log:
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)
Modified:
branches/11/channels/chan_iax2.c
branches/11/main/dsp.c
Modified: branches/11/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_iax2.c?view=diff&rev=433678&r1=433677&r2=433678
==============================================================================
--- branches/11/channels/chan_iax2.c (original)
+++ branches/11/channels/chan_iax2.c Sat Mar 28 07:17:45 2015
@@ -1938,11 +1938,6 @@
static struct iax2_user *find_user(const char *name)
{
return ao2_find(users, name, OBJ_KEY);
-}
-static inline struct iax2_user *user_ref(struct iax2_user *user)
-{
- ao2_ref(user, +1);
- return user;
}
static inline struct iax2_user *user_unref(struct iax2_user *user)
Modified: branches/11/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/dsp.c?view=diff&rev=433678&r1=433677&r2=433678
==============================================================================
--- branches/11/main/dsp.c (original)
+++ branches/11/main/dsp.c Sat Mar 28 07:17:45 2015
@@ -329,16 +329,6 @@
s->v2 = s->v2 >> 1;
}
}
-
-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)
{
More information about the asterisk-commits
mailing list