mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-21 20:40:10 +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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@413588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -538,7 +538,7 @@ static char *complete_dialplan_remove_extension(struct ast_cli_args *a)
|
||||
/* XXX lock e ? */
|
||||
priority = NULL;
|
||||
while ( !ret && (priority = ast_walk_extension_priorities(e, priority)) ) {
|
||||
snprintf(buffer, sizeof(buffer), "%u", ast_get_extension_priority(priority));
|
||||
snprintf(buffer, sizeof(buffer), "%d", ast_get_extension_priority(priority));
|
||||
if (partial_match(buffer, a->word, len) && ++which > a->n) /* n-th match */
|
||||
ret = strdup(buffer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user