Author: mjordan Date: Sat Mar 28 07:20:26 2015 New Revision: 433681 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433681 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 ........ Merged revisions 433680 from http://svn.asterisk.org/svn/asterisk/branches/13 Modified: trunk/ (props changed) trunk/channels/chan_iax2.c trunk/main/config.c trunk/main/dsp.c Propchange: trunk/ ------------------------------------------------------------------------------ Binary property 'branch-13-merged' - no diff available. Modified: trunk/channels/chan_iax2.c URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=433681&r1=433680&r2=433681 ============================================================================== --- trunk/channels/chan_iax2.c (original) +++ trunk/channels/chan_iax2.c Sat Mar 28 07:20:26 2015 @@ -2013,11 +2013,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: trunk/main/config.c URL: http://svnview.digium.com/svn/asterisk/trunk/main/config.c?view=diff&rev=433681&r1=433680&r2=433681 ============================================================================== --- trunk/main/config.c (original) +++ trunk/main/config.c Sat Mar 28 07:20:26 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: trunk/main/dsp.c URL: http://svnview.digium.com/svn/asterisk/trunk/main/dsp.c?view=diff&rev=433681&r1=433680&r2=433681 ============================================================================== --- trunk/main/dsp.c (original) +++ trunk/main/dsp.c Sat Mar 28 07:20:26 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) { -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits