mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-29 07:24:55 +00:00
Fix -Werror=unused-but-set-variable compiler error (gcc 4.6.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@356430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -571,14 +571,12 @@ static struct ast_channel *ooh323_request(const char *type, format_t format,
|
|||||||
char *ext = NULL;
|
char *ext = NULL;
|
||||||
char tmp[256];
|
char tmp[256];
|
||||||
char formats[FORMAT_STRING_SIZE];
|
char formats[FORMAT_STRING_SIZE];
|
||||||
int oldformat;
|
|
||||||
int port = 0;
|
int port = 0;
|
||||||
|
|
||||||
if (gH323Debug)
|
if (gH323Debug)
|
||||||
ast_verbose("--- ooh323_request - data %s format %s\n", (char*)data,
|
ast_verbose("--- ooh323_request - data %s format %s\n", (char*)data,
|
||||||
ast_getformatname_multiple(formats,FORMAT_STRING_SIZE,format));
|
ast_getformatname_multiple(formats,FORMAT_STRING_SIZE,format));
|
||||||
|
|
||||||
oldformat = format;
|
|
||||||
format &= AST_FORMAT_AUDIO_MASK;
|
format &= AST_FORMAT_AUDIO_MASK;
|
||||||
if (!format) {
|
if (!format) {
|
||||||
ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%lld'\n", (long long) 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 them;
|
||||||
struct sockaddr_in us;
|
struct sockaddr_in us;
|
||||||
struct ast_sockaddr tmp;
|
struct ast_sockaddr tmp;
|
||||||
int mode;
|
|
||||||
|
|
||||||
if (gH323Debug)
|
if (gH323Debug)
|
||||||
ast_verbose("--- ooh323_set_peer - %s\n", chan->name);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mode = ooh323_convertAsteriskCapToH323Cap(chan->writeformat);
|
|
||||||
p = (struct ooh323_pvt *) chan->tech_pvt;
|
p = (struct ooh323_pvt *) chan->tech_pvt;
|
||||||
if (!p) {
|
if (!p) {
|
||||||
ast_log(LOG_ERROR, "No Private Structure, this is bad\n");
|
ast_log(LOG_ERROR, "No Private Structure, this is bad\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user