[asterisk-commits] mjordan: branch 13 r433680 - in /branches/13: ./ channels/ main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Mar 28 07:19:57 CDT 2015
Author: mjordan
Date: Sat Mar 28 07:19:53 2015
New Revision: 433680
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433680
Log:
clang compiler warnings: Fix -Wunused-function; make inline function static
This patch fixes clang compilers warnings for unused functions. Specifically:
* channels/chan_iax2: removed user_ref function
* main/dsp.c: removed goertzel_update function
* main/config.c: made variable_list_switch static
Review: https://reviewboard.asterisk.org/r/4527
ASTERISK-24917
Reported by: dkdegroot
patches:
rb4527.patch submitted by dkdegroot (License 6600)
........
Merged revisions 433678 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
branches/13/ (props changed)
branches/13/channels/chan_iax2.c
branches/13/main/config.c
branches/13/main/dsp.c
Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: branches/13/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_iax2.c?view=diff&rev=433680&r1=433679&r2=433680
==============================================================================
--- branches/13/channels/chan_iax2.c (original)
+++ branches/13/channels/chan_iax2.c Sat Mar 28 07:19:53 2015
@@ -2021,11 +2021,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/13/main/config.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/config.c?view=diff&rev=433680&r1=433679&r2=433680
==============================================================================
--- branches/13/main/config.c (original)
+++ branches/13/main/config.c Sat Mar 28 07:19:53 2015
@@ -71,7 +71,7 @@
static struct ao2_container *cfg_hooks;
static void config_hook_exec(const char *filename, const char *module, const struct ast_config *cfg);
-inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2);
+static inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2);
static int does_category_match(struct ast_category *cat, const char *category_name, const char *match);
/*! \brief Structure to keep comments for rewriting configuration files */
@@ -614,7 +614,7 @@
return (cat) ? cat->root : NULL;
}
-inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2)
+static inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2)
{
l1->next = l2->next;
l2->next = l1;
Modified: branches/13/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/dsp.c?view=diff&rev=433680&r1=433679&r2=433680
==============================================================================
--- branches/13/main/dsp.c (original)
+++ branches/13/main/dsp.c Sat Mar 28 07:19:53 2015
@@ -338,16 +338,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