mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
(row0vers.c:74) Bug#55227 Fix compiler warnings in innodb with gcc 4.6
This commit is contained in:
parent
d4a2abcd2f
commit
70a486c7e7
1 changed files with 8 additions and 3 deletions
|
@ -71,7 +71,9 @@ row_vers_impl_x_locked_off_kernel(
|
|||
warning */
|
||||
trx_t* trx;
|
||||
ulint rec_del;
|
||||
#ifdef UNIV_DEBUG
|
||||
ulint err;
|
||||
#endif /* UNIV_DEBUG */
|
||||
mtr_t mtr;
|
||||
ulint comp;
|
||||
|
||||
|
@ -169,9 +171,12 @@ row_vers_impl_x_locked_off_kernel(
|
|||
|
||||
heap2 = heap;
|
||||
heap = mem_heap_create(1024);
|
||||
err = trx_undo_prev_version_build(clust_rec, &mtr, version,
|
||||
clust_index, clust_offsets,
|
||||
heap, &prev_version);
|
||||
#ifdef UNIV_DEBUG
|
||||
err =
|
||||
#endif /* UNIV_DEBUG */
|
||||
trx_undo_prev_version_build(clust_rec, &mtr, version,
|
||||
clust_index, clust_offsets,
|
||||
heap, &prev_version);
|
||||
mem_heap_free(heap2); /* free version and clust_offsets */
|
||||
|
||||
if (prev_version == NULL) {
|
||||
|
|
Loading…
Reference in a new issue