[asterisk-commits] pabelanger: branch 1.8 r356430 - /branches/1.8/addons/chan_ooh323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 22 21:36:50 CST 2012


Author: pabelanger
Date: Wed Feb 22 21:36:46 2012
New Revision: 356430

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=356430
Log:
Fix -Werror=unused-but-set-variable compiler error (gcc 4.6.2)

Modified:
    branches/1.8/addons/chan_ooh323.c

Modified: branches/1.8/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/chan_ooh323.c?view=diff&rev=356430&r1=356429&r2=356430
==============================================================================
--- branches/1.8/addons/chan_ooh323.c (original)
+++ branches/1.8/addons/chan_ooh323.c Wed Feb 22 21:36:46 2012
@@ -571,14 +571,12 @@
 	char *ext = NULL;
 	char tmp[256];
 	char formats[FORMAT_STRING_SIZE];
-	int oldformat;
 	int port = 0;
 
 	if (gH323Debug)
 		ast_verbose("---   ooh323_request - data %s format %s\n", (char*)data,  
 										ast_getformatname_multiple(formats,FORMAT_STRING_SIZE,format));
 
-	oldformat = format;
 	format &= AST_FORMAT_AUDIO_MASK;
 	if (!format) {
 		ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%lld'\n", (long long) format);
@@ -3920,7 +3918,6 @@
 	struct sockaddr_in them;
 	struct sockaddr_in us;
 	struct ast_sockaddr tmp;
-	int mode;
 
 	if (gH323Debug)
 		ast_verbose("---   ooh323_set_peer - %s\n", chan->name);
@@ -3929,7 +3926,6 @@
 		return 0;
 	}
 
-	mode = ooh323_convertAsteriskCapToH323Cap(chan->writeformat); 
 	p = (struct ooh323_pvt *) chan->tech_pvt;
 	if (!p) {
 		ast_log(LOG_ERROR, "No Private Structure, this is bad\n");




More information about the asterisk-commits mailing list