]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix -Werror=unused-but-set-variable compiler error (gcc 4.6.2)
authorPaul Belanger <paul.belanger@polybeacon.com>
Thu, 23 Feb 2012 03:59:46 +0000 (03:59 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Thu, 23 Feb 2012 03:59:46 +0000 (03:59 +0000)
........

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

addons/chan_ooh323.c

index 9779d14834c012e56b43ebb10f283b4658d440c1..d7a63bf809f156b250ad6052ff8eeba4c862f06e 100644 (file)
@@ -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");