summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorVasil Dimov <vasil.dimov@oracle.com>2010-09-14 15:28:48 +0300
committerVasil Dimov <vasil.dimov@oracle.com>2010-09-14 15:28:48 +0300
commit9d74ab6033bed490a2701dbb6ca97ed7cd73879f (patch)
tree6606a2ffa0fee812dd1fed56f492bcb1bfd51654 /storage/innobase
parentd1b9cca52ced3ff0598b46cda39935f99d7e2138 (diff)
downloadmariadb-git-9d74ab6033bed490a2701dbb6ca97ed7cd73879f.tar.gz
(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
Fix compiler warning: trx/trx0sys.c: In function 'trx_sys_create_doublewrite_buf': trx/trx0sys.c:168:10: error: variable 'new_page' set but not used [-Werror=unused-but-set-variable]
Diffstat (limited to 'storage/innobase')
-rw-r--r--storage/innobase/trx/trx0sys.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/storage/innobase/trx/trx0sys.c b/storage/innobase/trx/trx0sys.c
index f732aca93f5..137771b71ed 100644
--- a/storage/innobase/trx/trx0sys.c
+++ b/storage/innobase/trx/trx0sys.c
@@ -165,7 +165,9 @@ trx_sys_create_doublewrite_buf(void)
{
page_t* page;
page_t* page2;
+#ifdef UNIV_SYNC_DEBUG
page_t* new_page;
+#endif /* UNIV_SYNC_DEBUG */
byte* doublewrite;
byte* fseg_header;
ulint page_no;
@@ -271,8 +273,11 @@ start_again:
the page position in the tablespace, then the page
has not been written to in doublewrite. */
- new_page = buf_page_get(TRX_SYS_SPACE, page_no,
- RW_X_LATCH, &mtr);
+#ifdef UNIV_SYNC_DEBUG
+ new_page =
+#endif /* UNIV_SYNC_DEBUG */
+ buf_page_get(TRX_SYS_SPACE, page_no,
+ RW_X_LATCH, &mtr);
#ifdef UNIV_SYNC_DEBUG
buf_page_dbg_add_level(new_page, SYNC_NO_ORDER_CHECK);
#endif /* UNIV_SYNC_DEBUG */