]> 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:36:46 +0000 (03:36 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Thu, 23 Feb 2012 03:36:46 +0000 (03:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@356430 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/chan_ooh323.c

index f15a3ed5daddb891fc0e961e4579f7b7cf7438d2..b74542cb9137fa5335f0ebb0111d3f0dbb700b9e 100644 (file)
@@ -571,14 +571,12 @@ static struct ast_channel *ooh323_request(const char *type, format_t format,
        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 @@ static int ooh323_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance
        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 @@ 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");