mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
Fix compiler warning: row/row0umod.c: In function 'row_undo_mod_clust_low': row/row0umod.c:117:9: error: variable 'success' set but not used [-Werror=unused-but-set-variable]
This commit is contained in:
parent
d54a4948ce
commit
3ca8b186f1
1 changed files with 6 additions and 1 deletions
|
|
@ -114,12 +114,17 @@ row_undo_mod_clust_low(
|
||||||
btr_pcur_t* pcur;
|
btr_pcur_t* pcur;
|
||||||
btr_cur_t* btr_cur;
|
btr_cur_t* btr_cur;
|
||||||
ulint err;
|
ulint err;
|
||||||
|
#ifdef UNIV_DEBUG
|
||||||
ibool success;
|
ibool success;
|
||||||
|
#endif /* UNIV_DEBUG */
|
||||||
|
|
||||||
pcur = &(node->pcur);
|
pcur = &(node->pcur);
|
||||||
btr_cur = btr_pcur_get_btr_cur(pcur);
|
btr_cur = btr_pcur_get_btr_cur(pcur);
|
||||||
|
|
||||||
success = btr_pcur_restore_position(mode, pcur, mtr);
|
#ifdef UNIV_DEBUG
|
||||||
|
success =
|
||||||
|
#endif /* UNIV_DEBUG */
|
||||||
|
btr_pcur_restore_position(mode, pcur, mtr);
|
||||||
|
|
||||||
ut_ad(success);
|
ut_ad(success);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue