Commit 34eba1fa authored by Marko Mäkelä's avatar Marko Mäkelä

Declarations and code do not mix in C90, not even within UNIV_DEBUG.

parent 8b7eaab3
...@@ -1710,9 +1710,9 @@ buf_flush_validate_low(void) ...@@ -1710,9 +1710,9 @@ buf_flush_validate_low(void)
ut_a(om > 0); ut_a(om > 0);
if (UNIV_LIKELY_NULL(buf_pool->flush_rbt)) { if (UNIV_LIKELY_NULL(buf_pool->flush_rbt)) {
buf_page_t* rpage;
ut_a(rnode); ut_a(rnode);
buf_page_t* rpage = *rbt_value(buf_page_t*, rpage = *rbt_value(buf_page_t*, rnode);
rnode);
ut_a(rpage); ut_a(rpage);
ut_a(rpage == bpage); ut_a(rpage == bpage);
rnode = rbt_next(buf_pool->flush_rbt, rnode); rnode = rbt_next(buf_pool->flush_rbt, rnode);
......
...@@ -335,10 +335,13 @@ rw_lock_validate( ...@@ -335,10 +335,13 @@ rw_lock_validate(
/*=============*/ /*=============*/
rw_lock_t* lock) /*!< in: rw-lock */ rw_lock_t* lock) /*!< in: rw-lock */
{ {
ulint waiters;
lint lock_word;
ut_a(lock); ut_a(lock);
ulint waiters = rw_lock_get_waiters(lock); waiters = rw_lock_get_waiters(lock);
lint lock_word = lock->lock_word; lock_word = lock->lock_word;
ut_ad(lock->magic_n == RW_LOCK_MAGIC_N); ut_ad(lock->magic_n == RW_LOCK_MAGIC_N);
ut_a(waiters == 0 || waiters == 1); ut_a(waiters == 0 || waiters == 1);
......
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