Author: wedhorn Date: Mon Aug 18 16:18:17 2014 New Revision: 421380 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421380 Log: Skinny: Fixup compile warning for non dev-mode. ........
Merged revisions 421376 from http://svn.asterisk.org/svn/asterisk/branches/13 Modified: trunk/ (props changed) trunk/channels/chan_skinny.c Propchange: trunk/ ------------------------------------------------------------------------------ Binary property 'branch-13-merged' - no diff available. Modified: trunk/channels/chan_skinny.c URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=421380&r1=421379&r2=421380 ============================================================================== --- trunk/channels/chan_skinny.c (original) +++ trunk/channels/chan_skinny.c Mon Aug 18 16:18:17 2014 @@ -5360,6 +5360,9 @@ struct ast_variable *v = NULL; struct ast_format *tmpfmt; struct ast_format_cap *caps; +#ifdef AST_DEVMODE + struct ast_str *codec_buf = ast_str_alloca(64); +#endif if (!l->device || !l->device->session) { ast_log(LOG_WARNING, "Device for line %s is not registered.\n", l->name); @@ -5377,8 +5380,6 @@ ao2_ref(caps, -1); return NULL; } else { - struct ast_str *codec_buf = ast_str_alloca(64); - sub = ast_calloc(1, sizeof(*sub)); if (!sub) { ast_log(LOG_WARNING, "Unable to allocate Skinny subchannel\n"); @@ -6645,8 +6646,11 @@ struct skinny_line *l; uint32_t count = 0; struct ast_format_cap *codecs = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_DEFAULT); + int i; +#ifdef AST_DEVMODE struct ast_str *codec_buf = ast_str_alloca(64); - int i; +#endif + if (!codecs) { return 0; -- _____________________________________________________________________ -- 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