List:Commits« Previous MessageNext Message »
From:vasil.dimov Date:September 15 2010 8:30am
Subject:bzr commit into mysql-5.1-innodb branch (vasil.dimov:3588) Bug#55227
View as plain text  
#At file:///usr/local/devel/bzrroot/server/mysql-5.1-innodb/ based on revid:vasil.dimov@stripped

 3588 Vasil Dimov	2010-09-15
      (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]

    modified:
      storage/innodb_plugin/buf/buf0flu.c
=== modified file 'storage/innodb_plugin/buf/buf0flu.c'
--- a/storage/innodb_plugin/buf/buf0flu.c	revid:vasil.dimov@stripped
+++ b/storage/innodb_plugin/buf/buf0flu.c	revid:vasil.dimov@stripped
@@ -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);
 }
 


Attachment: [text/bzr-bundle] bzr/vasil.dimov@oracle.com-20100915082951-gozoxylx5bk6982s.bundle
Thread
bzr commit into mysql-5.1-innodb branch (vasil.dimov:3588) Bug#55227vasil.dimov15 Sep