mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Allow Asterisk to compile under GCC 4.10
This resolves a large number of compiler warnings from GCC 4.10 which cause the build to fail under dev mode. The vast majority are signed/unsigned mismatches in printf-style format strings. ........ Merged revisions 413586 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 413587 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 413588 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -97,11 +97,11 @@ static void opus_sdp_generate(const struct ast_format_attr *format_attr, unsigne
|
||||
|
||||
/* FIXME should we only generate attributes that were explicitly set? */
|
||||
ast_str_append(str, 0,
|
||||
"a=fmtp:%d "
|
||||
"maxplaybackrate=%d;"
|
||||
"sprop-maxcapturerate=%d;"
|
||||
"minptime=%d;"
|
||||
"maxaveragebitrate=%d;"
|
||||
"a=fmtp:%u "
|
||||
"maxplaybackrate=%u;"
|
||||
"sprop-maxcapturerate=%u;"
|
||||
"minptime=%u;"
|
||||
"maxaveragebitrate=%u;"
|
||||
"stereo=%d;"
|
||||
"sprop-stereo=%d;"
|
||||
"cbr=%d;"
|
||||
@@ -216,7 +216,7 @@ static int opus_isset(const struct ast_format_attr *fattr, va_list ap)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ast_log(LOG_WARNING, "unknown attribute type %d\n", key);
|
||||
ast_log(LOG_WARNING, "unknown attribute type %u\n", key);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -284,7 +284,7 @@ static void opus_set(struct ast_format_attr *fattr, va_list ap)
|
||||
attr->spropstereo = (va_arg(ap, int));
|
||||
break;
|
||||
default:
|
||||
ast_log(LOG_WARNING, "unknown attribute type %d\n", key);
|
||||
ast_log(LOG_WARNING, "unknown attribute type %u\n", key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user