mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
Fix compiler warning: buf/buf0flu.c: In function 'buf_flush_delete_from_flush_rbt': buf/buf0flu.c:131:8: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
This commit is contained in:
parent
32c39f1a1d
commit
969cdde8e2
1 changed files with 6 additions and 1 deletions
|
@ -128,10 +128,15 @@ buf_flush_delete_from_flush_rbt(
|
|||
buf_page_t* bpage) /*!< in: bpage to be removed. */
|
||||
{
|
||||
|
||||
#ifdef UNIV_DEBUG
|
||||
ibool ret = FALSE;
|
||||
#endif /* UNIV_DEBUG */
|
||||
|
||||
ut_ad(buf_pool_mutex_own());
|
||||
ret = rbt_delete(buf_pool->flush_rbt, &bpage);
|
||||
#ifdef UNIV_DEBUG
|
||||
ret =
|
||||
#endif /* UNIV_DEBUG */
|
||||
rbt_delete(buf_pool->flush_rbt, &bpage);
|
||||
ut_ad(ret);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue