diff options
author | Vasil Dimov <vasil.dimov@oracle.com> | 2010-09-15 18:47:14 +0300 |
---|---|---|
committer | Vasil Dimov <vasil.dimov@oracle.com> | 2010-09-15 18:47:14 +0300 |
commit | 0c43681b43947c71fa083cdc2ef72bd389b9cf1c (patch) | |
tree | 6cfaf03c7336870deb882fb46b7ad57e1a0243c8 /storage | |
parent | 71630f36387af58f3bcbb8930985a629a870059e (diff) | |
download | mariadb-git-0c43681b43947c71fa083cdc2ef72bd389b9cf1c.tar.gz |
(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
Fix compiler warning:
trx/trx0purge.c: In function 'trx_purge_rseg_get_next_history_log':
trx/trx0purge.c:660:15: error: variable 'seg_hdr' set but not used [-Werror=unused-but-set-variable]
Diffstat (limited to 'storage')
-rw-r--r-- | storage/innodb_plugin/trx/trx0purge.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/storage/innodb_plugin/trx/trx0purge.c b/storage/innodb_plugin/trx/trx0purge.c index 43dd051c2ee..38966cb5db5 100644 --- a/storage/innodb_plugin/trx/trx0purge.c +++ b/storage/innodb_plugin/trx/trx0purge.c @@ -657,7 +657,6 @@ trx_purge_rseg_get_next_history_log( { page_t* undo_page; trx_ulogf_t* log_hdr; - trx_usegf_t* seg_hdr; fil_addr_t prev_log_addr; trx_id_t trx_no; ibool del_marks; @@ -678,7 +677,6 @@ trx_purge_rseg_get_next_history_log( undo_page = trx_undo_page_get_s_latched(rseg->space, rseg->zip_size, rseg->last_page_no, &mtr); log_hdr = undo_page + rseg->last_offset; - seg_hdr = undo_page + TRX_UNDO_SEG_HDR; /* Increase the purge page count by one for every handled log */ |