mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 04:48:51 +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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@413586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -299,7 +299,7 @@ static int printdigest(const unsigned char *d)
|
||||
char buf[256]; /* large enough so we don't have to worry */
|
||||
|
||||
for (pos = 0, x = 0; x < 16; x++)
|
||||
pos += sprintf(buf + pos, " %02x", *d++);
|
||||
pos += sprintf(buf + pos, " %02x", (unsigned)*d++);
|
||||
|
||||
ast_debug(1, "Unexpected signature:%s\n", buf);
|
||||
|
||||
@@ -1191,7 +1191,7 @@ int load_modules(unsigned int preload_only)
|
||||
load_count++;
|
||||
|
||||
if (load_count)
|
||||
ast_log(LOG_NOTICE, "%d modules will be loaded.\n", load_count);
|
||||
ast_log(LOG_NOTICE, "%u modules will be loaded.\n", load_count);
|
||||
|
||||
/* first, load only modules that provide global symbols */
|
||||
if ((res = load_resource_list(&load_order, 1, &modulecount)) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user