Commit 8968ca7f authored by Vasil Dimov's avatar Vasil Dimov

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

Fix compiler warnings:
trx/trx0roll.c: In function 'trx_undo_arr_remove_info':
trx/trx0roll.c:744:9: error: variable 'n' set but not used [-Werror=unused-but-set-variable]
trx/trx0roll.c:743:9: error: variable 'n_used' set but not used [-Werror=unused-but-set-variable]
parent 7cfe9f4f
...@@ -740,13 +740,8 @@ trx_undo_arr_remove_info( ...@@ -740,13 +740,8 @@ trx_undo_arr_remove_info(
undo_no_t undo_no)/*!< in: undo number */ undo_no_t undo_no)/*!< in: undo number */
{ {
trx_undo_inf_t* cell; trx_undo_inf_t* cell;
ulint n_used;
ulint n;
ulint i; ulint i;
n_used = arr->n_used;
n = 0;
for (i = 0;; i++) { for (i = 0;; i++) {
cell = trx_undo_arr_get_nth_info(arr, i); cell = trx_undo_arr_get_nth_info(arr, i);
......
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