summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorVasil Dimov <vasil.dimov@oracle.com>2010-09-14 17:55:44 +0300
committerVasil Dimov <vasil.dimov@oracle.com>2010-09-14 17:55:44 +0300
commitbed81fec77ded8366f20fbfea86e494bd387dfe8 (patch)
tree372ee226c1a6ad73cc648b3bf2c573a90b63bccd /storage/innobase
parent33c7ab2b98617552c6d3d4095a4080169fd522fa (diff)
downloadmariadb-git-bed81fec77ded8366f20fbfea86e494bd387dfe8.tar.gz
(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
Fix compiler warning: trx/trx0undo.c: In function 'trx_undo_set_state_at_prepare': trx/trx0undo.c:1798:16: error: variable 'page_hdr' set but not used [-Werror=unused-but-set-variable]
Diffstat (limited to 'storage/innobase')
-rw-r--r--storage/innobase/trx/trx0undo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/storage/innobase/trx/trx0undo.c b/storage/innobase/trx/trx0undo.c
index e47abe2c08a..4547ee9ea64 100644
--- a/storage/innobase/trx/trx0undo.c
+++ b/storage/innobase/trx/trx0undo.c
@@ -1795,7 +1795,6 @@ trx_undo_set_state_at_prepare(
mtr_t* mtr) /* in: mtr */
{
trx_usegf_t* seg_hdr;
- trx_upagef_t* page_hdr;
trx_ulogf_t* undo_header;
page_t* undo_page;
ulint offset;
@@ -1812,7 +1811,6 @@ trx_undo_set_state_at_prepare(
undo_page = trx_undo_page_get(undo->space, undo->hdr_page_no, mtr);
seg_hdr = undo_page + TRX_UNDO_SEG_HDR;
- page_hdr = undo_page + TRX_UNDO_PAGE_HDR;
/*------------------------------*/
undo->state = TRX_UNDO_PREPARED;