mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-13 13:28:34 +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:
@@ -437,7 +437,7 @@ static void odbc_log(const struct ast_event *event, void *userdata)
|
||||
} else if (strcmp(entry->celname, "peer") == 0) {
|
||||
ast_copy_string(colbuf, record.peer, sizeof(colbuf));
|
||||
} else if (strcmp(entry->celname, "amaflags") == 0) {
|
||||
snprintf(colbuf, sizeof(colbuf), "%d", record.amaflag);
|
||||
snprintf(colbuf, sizeof(colbuf), "%u", record.amaflag);
|
||||
} else if (strcmp(entry->celname, "extra") == 0) {
|
||||
ast_copy_string(colbuf, record.extra, sizeof(colbuf));
|
||||
} else {
|
||||
@@ -631,7 +631,7 @@ static void odbc_log(const struct ast_event *event, void *userdata)
|
||||
break;
|
||||
case SQL_TINYINT:
|
||||
{
|
||||
char integer = 0;
|
||||
signed char integer = 0;
|
||||
if (strcasecmp(entry->name, "eventtype") == 0) {
|
||||
integer = (char) record.event_type;
|
||||
} else if (ast_strlen_zero(colptr)) {
|
||||
@@ -648,7 +648,7 @@ static void odbc_log(const struct ast_event *event, void *userdata)
|
||||
break;
|
||||
case SQL_BIT:
|
||||
{
|
||||
char integer = 0;
|
||||
signed char integer = 0;
|
||||
if (strcasecmp(entry->name, "eventtype") == 0) {
|
||||
integer = (char) record.event_type;
|
||||
} else if (ast_strlen_zero(colptr)) {
|
||||
|
||||
Reference in New Issue
Block a user