maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #02793
Rev 2760: Compiler warnings removed. in file:///Users/bell/maria/bzr/work-maria-5.2-warnings/
At file:///Users/bell/maria/bzr/work-maria-5.2-warnings/
------------------------------------------------------------
revno: 2760
revision-id: sanja@xxxxxxxxxxxx-20100330123515-4p8q03xccl3d6k59
parent: sanja@xxxxxxxxxxxx-20100330084125-f0ch43jawtcd5p3x
committer: sanja@xxxxxxxxxxxx
branch nick: work-maria-5.2-warnings
timestamp: Tue 2010-03-30 15:35:15 +0300
message:
Compiler warnings removed.
=== modified file 'storage/maria/ma_loghandler.c'
--- a/storage/maria/ma_loghandler.c 2010-03-30 08:41:25 +0000
+++ b/storage/maria/ma_loghandler.c 2010-03-30 12:35:15 +0000
@@ -1275,6 +1275,7 @@
{
LOGHANDLER_FILE_INFO info;
File fd= open_logfile_by_number_no_cache(file);
+ LINT_INIT_STRUCT(info);
if ((fd < 0) ||
((translog_read_file_header(&info, fd) ||
(cmp_translog_addr(lsn, info.max_lsn) > 0 &&
@@ -1457,8 +1458,8 @@
{
LOGHANDLER_FILE_INFO info;
+ File fd= open_logfile_by_number_no_cache(file);
LINT_INIT_STRUCT(info);
- File fd= open_logfile_by_number_no_cache(file);
if ((fd < 0) ||
(translog_read_file_header(&info, fd) | my_close(fd, MYF(MY_WME))))
{
@@ -3966,6 +3967,7 @@
if (!old_log_was_recovered && old_flags == flags)
{
LOGHANDLER_FILE_INFO info;
+ LINT_INIT_STRUCT(info);
/*
Accessing &log_descriptor.open_files without mutex is safe
because it is initialization
@@ -8974,6 +8976,7 @@
{
LOGHANDLER_FILE_INFO desc;
char strbuff[21];
+ LINT_INIT_STRUCT(desc);
translog_interpret_file_header(&desc, buff);
printf(" This can be header page:\n"
" Timestamp: %s\n"