From: Paul Belanger Date: Thu, 23 Feb 2012 03:59:46 +0000 (+0000) Subject: Fix -Werror=unused-but-set-variable compiler error (gcc 4.6.2) X-Git-Tag: 10.3.0-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ec1fdc8ae69d4e5c4e073f34269bde3b281a62;p=thirdparty%2Fasterisk.git Fix -Werror=unused-but-set-variable compiler error (gcc 4.6.2) ........ Merged revisions 356430 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@356431 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 9779d14834..d7a63bf809 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -4167,7 +4167,6 @@ static int ooh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance /* XXX Deal with Video */ struct ooh323_pvt *p; struct ast_sockaddr tmp; - int mode; if (gH323Debug) ast_verbose("--- ooh323_set_peer - %s\n", chan->name); @@ -4176,7 +4175,6 @@ static int ooh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance 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");