summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Dimov <vasil.dimov@oracle.com>2010-09-14 12:00:58 +0300
committerVasil Dimov <vasil.dimov@oracle.com>2010-09-14 12:00:58 +0300
commit87d4bae87e71bd745ba1caaf8a4003f55459cff4 (patch)
tree38e262307e6e33602f35b2d6bcd29ef0315de5dc
parent91918245ece2fb42f203e43637f0a7a72fa6f9c8 (diff)
downloadmariadb-git-87d4bae87e71bd745ba1caaf8a4003f55459cff4.tar.gz
(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
Fix compiler warning: buf/buf0flu.c: In function 'buf_flush_batch': buf/buf0flu.c:844:9: error: variable 'old_page_count' set but not used [-Werror=unused-but-set-variable]
-rw-r--r--storage/innobase/buf/buf0flu.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/storage/innobase/buf/buf0flu.c b/storage/innobase/buf/buf0flu.c
index 7533205d695..24fa306c127 100644
--- a/storage/innobase/buf/buf0flu.c
+++ b/storage/innobase/buf/buf0flu.c
@@ -841,7 +841,6 @@ buf_flush_batch(
{
buf_block_t* block;
ulint page_count = 0;
- ulint old_page_count;
ulint space;
ulint offset;
ibool found;
@@ -913,15 +912,9 @@ buf_flush_batch(
mutex_exit(&block->mutex);
mutex_exit(&(buf_pool->mutex));
- old_page_count = page_count;
-
/* Try to flush also all the neighbors */
page_count += buf_flush_try_neighbors(
space, offset, flush_type);
- /* fprintf(stderr,
- "Flush type %lu, page no %lu, neighb %lu\n",
- flush_type, offset,
- page_count - old_page_count); */
mutex_enter(&(buf_pool->mutex));