[svn-commits] wedhorn: branch 13 r421376 - /branches/13/channels/chan_skinny.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Aug 18 16:10:44 CDT 2014
Author: wedhorn
Date: Mon Aug 18 16:10:41 2014
New Revision: 421376
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421376
Log:
Skinny: Fixup compile warning for non dev-mode.
Modified:
branches/13/channels/chan_skinny.c
Modified: branches/13/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_skinny.c?view=diff&rev=421376&r1=421375&r2=421376
==============================================================================
--- branches/13/channels/chan_skinny.c (original)
+++ branches/13/channels/chan_skinny.c Mon Aug 18 16:10:41 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;
More information about the svn-commits
mailing list