diff options
author | unknown <marko@hundin.mysql.fi> | 2005-06-21 11:49:55 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-06-21 11:49:55 +0300 |
commit | 0bfbba10647a8a425e1b52a6db047f65db87b7f7 (patch) | |
tree | 46e1dc0338d4a0428d8d04b5ffd135cf95d9ea68 /innobase/log | |
parent | 2db945e3ee272cd7e98168092c9e6473a46fce32 (diff) | |
download | mariadb-git-0bfbba10647a8a425e1b52a6db047f65db87b7f7.tar.gz |
InnoDB: Remove some warnings reported by GCC 4.0.0.
innobase/log/log0recv.c:
Remove GCC 4.0.0 warnings about possibly uninitialized variables.
innobase/row/row0umod.c:
row_undo_mod_undo_also_prev_vers(): Remove unused parameter thr,
always initialize *undo_no to remove GCC 4.0.0 warning
innobase/trx/trx0undo.c:
trx_undo_write_xid(): Remove warning about signedness mismatch,
add const qualifier to parameter xid.
sql/ha_innodb.cc:
Add proper casts from ulonglong to ulong in fprintf statements.
Diffstat (limited to 'innobase/log')
-rw-r--r-- | innobase/log/log0recv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/innobase/log/log0recv.c b/innobase/log/log0recv.c index 0417d01d89a..8d9780bfbda 100644 --- a/innobase/log/log0recv.c +++ b/innobase/log/log0recv.c @@ -477,6 +477,7 @@ recv_find_max_checkpoint( max_no = ut_dulint_zero; *max_group = NULL; + *max_field = 0; buf = log_sys->checkpoint_buf; @@ -543,7 +544,6 @@ recv_find_max_checkpoint( "InnoDB: to create the InnoDB data files, but log file creation failed.\n" "InnoDB: If that is the case, please refer to\n" "InnoDB: http://dev.mysql.com/doc/mysql/en/Error_creating_InnoDB.html\n"); - *max_field = 0; return(DB_ERROR); } @@ -1168,6 +1168,7 @@ recv_recover_page( } modification_to_page = FALSE; + start_lsn = end_lsn = ut_dulint_zero; recv = UT_LIST_GET_FIRST(recv_addr->rec_list); @@ -1796,6 +1797,8 @@ recv_parse_log_rec( { byte* new_ptr; + *body = NULL; + if (ptr == end_ptr) { return(0); |