Commit 5cc0173a authored by Vasil Dimov's avatar Vasil Dimov

(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6

Fix compiler warning:
lock/lock0lock.c: In function 'lock_print_info_all_transactions':
lock/lock0lock.c:4299:10: error: variable 'page' set but not used [-Werror=unused-but-set-variable]
parent e92ef01f
...@@ -4296,7 +4296,6 @@ lock_print_info_all_transactions( ...@@ -4296,7 +4296,6 @@ lock_print_info_all_transactions(
lock_t* lock; lock_t* lock;
ulint space; ulint space;
ulint page_no; ulint page_no;
page_t* page;
ibool load_page_first = TRUE; ibool load_page_first = TRUE;
ulint nth_trx = 0; ulint nth_trx = 0;
ulint nth_lock = 0; ulint nth_lock = 0;
...@@ -4410,8 +4409,7 @@ loop: ...@@ -4410,8 +4409,7 @@ loop:
mtr_start(&mtr); mtr_start(&mtr);
page = buf_page_get_with_no_latch( buf_page_get_with_no_latch(space, page_no, &mtr);
space, page_no, &mtr);
mtr_commit(&mtr); mtr_commit(&mtr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment