diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-10-29 20:40:03 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-10-29 20:40:03 +0200 |
commit | 3794110f0215f0631107c2694dc0f1675a4bb520 (patch) | |
tree | 3400a806088335fffbb0c567d5ee7f40ca9a90ce /storage/maria/ma_dynrec.c | |
parent | 949027f7c7b8704f2a329c85b8725af5158f3ade (diff) | |
download | mariadb-git-3794110f0215f0631107c2694dc0f1675a4bb520.tar.gz |
fix the build and compiler warnings (few of which were real bugs)
for "cmake ." builds
Diffstat (limited to 'storage/maria/ma_dynrec.c')
-rw-r--r-- | storage/maria/ma_dynrec.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/storage/maria/ma_dynrec.c b/storage/maria/ma_dynrec.c index cc03d621a26..70ecac318cc 100644 --- a/storage/maria/ma_dynrec.c +++ b/storage/maria/ma_dynrec.c @@ -1452,15 +1452,13 @@ int _ma_read_dynamic_record(MARIA_HA *info, uchar *buf, uint b_type; MARIA_BLOCK_INFO block_info; File file; - uchar *to; - uint left_length; + uchar *UNINIT_VAR(to); + uint UNINIT_VAR(left_length); DBUG_ENTER("_ma_read_dynamic_record"); if (filepos == HA_OFFSET_ERROR) goto err; - LINT_INIT(to); - LINT_INIT(left_length); file= info->dfile.file; block_of_record= 0; /* First block of record is numbered as zero. */ block_info.second_read= 0; @@ -1738,13 +1736,12 @@ int _ma_read_rnd_dynamic_record(MARIA_HA *info, { int block_of_record, info_read; uint left_len,b_type; - uchar *to; + uchar *UNINIT_VAR(to); MARIA_BLOCK_INFO block_info; MARIA_SHARE *share= info->s; DBUG_ENTER("_ma_read_rnd_dynamic_record"); info_read=0; - LINT_INIT(to); if (info->lock_type == F_UNLCK) { |