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

 3605 Vasil Dimov	2010-09-15
      (partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
      
      Fix compiler warning:
      trx/trx0purge.c: In function 'trx_purge_add_update_undo_to_history':
      trx/trx0purge.c:307:15: error: variable 'seg_header' set but not used [-Werror=unused-but-set-variable]

    modified:
      storage/innodb_plugin/trx/trx0purge.c
=== modified file 'storage/innodb_plugin/trx/trx0purge.c'
--- a/storage/innodb_plugin/trx/trx0purge.c	revid:vasil.dimov@stripped
+++ b/storage/innodb_plugin/trx/trx0purge.c	revid:vasil.dimov@stripped
@@ -304,7 +304,9 @@ trx_purge_add_update_undo_to_history(
 	trx_undo_t*	undo;
 	trx_rseg_t*	rseg;
 	trx_rsegf_t*	rseg_header;
+#ifdef UNIV_DEBUG
 	trx_usegf_t*	seg_header;
+#endif /* UNIV_DEBUG */
 	trx_ulogf_t*	undo_header;
 	ulint		hist_size;
 
@@ -320,7 +322,9 @@ trx_purge_add_update_undo_to_history(
 				    rseg->page_no, mtr);
 
 	undo_header = undo_page + undo->hdr_offset;
+#ifdef UNIV_DEBUG
 	seg_header  = undo_page + TRX_UNDO_SEG_HDR;
+#endif /* UNIV_DEBUG */
 
 	if (undo->state != TRX_UNDO_CACHED) {
 		/* The undo log segment will not be reused */


Attachment: [text/bzr-bundle] bzr/vasil.dimov@oracle.com-20100915154557-09txua4taw58et7r.bundle
Thread
bzr commit into mysql-5.1-innodb branch (vasil.dimov:3605) Bug#55227vasil.dimov16 Sep