Commit 6f082344 authored by Vasil Dimov's avatar Vasil Dimov

(row0vers.c:74) Bug#55227 Fix compiler warnings in innodb with gcc 4.6

parent 7f1ffcfb
...@@ -71,7 +71,9 @@ row_vers_impl_x_locked_off_kernel( ...@@ -71,7 +71,9 @@ row_vers_impl_x_locked_off_kernel(
warning */ warning */
trx_t* trx; trx_t* trx;
ulint rec_del; ulint rec_del;
#ifdef UNIV_DEBUG
ulint err; ulint err;
#endif /* UNIV_DEBUG */
mtr_t mtr; mtr_t mtr;
ulint comp; ulint comp;
...@@ -169,7 +171,10 @@ row_vers_impl_x_locked_off_kernel( ...@@ -169,7 +171,10 @@ row_vers_impl_x_locked_off_kernel(
heap2 = heap; heap2 = heap;
heap = mem_heap_create(1024); heap = mem_heap_create(1024);
err = trx_undo_prev_version_build(clust_rec, &mtr, version, #ifdef UNIV_DEBUG
err =
#endif /* UNIV_DEBUG */
trx_undo_prev_version_build(clust_rec, &mtr, version,
clust_index, clust_offsets, clust_index, clust_offsets,
heap, &prev_version); heap, &prev_version);
mem_heap_free(heap2); /* free version and clust_offsets */ mem_heap_free(heap2); /* free version and clust_offsets */
......
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