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

 3570 Vasil Dimov	2010-09-14
      (partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
      
      Fix compiler warning:
      row/row0vers.c: In function 'row_vers_impl_x_locked_off_kernel':
      row/row0vers.c:62:9: error: variable 'err' set but not used [-Werror=unused-but-set-variable]

    modified:
      storage/innobase/row/row0vers.c
=== modified file 'storage/innobase/row/row0vers.c'
--- a/storage/innobase/row/row0vers.c	revid:vasil.dimov@stripped
+++ b/storage/innobase/row/row0vers.c	revid:vasil.dimov@stripped
@@ -59,7 +59,9 @@ row_vers_impl_x_locked_off_kernel(
 	trx_t*		trx;
 	ulint		vers_del;
 	ulint		rec_del;
+#ifdef UNIV_DEBUG
 	ulint		err;
+#endif /* UNIV_DEBUG */
 	mtr_t		mtr;
 	ulint		comp;
 
@@ -152,9 +154,12 @@ row_vers_impl_x_locked_off_kernel(
 
 		heap2 = heap;
 		heap = mem_heap_create(1024);
-		err = trx_undo_prev_version_build(clust_rec, &mtr, version,
-						  clust_index, clust_offsets,
-						  heap, &prev_version);
+#ifdef UNIV_DEBUG
+		err =
+#endif /* UNIV_DEBUG */
+		trx_undo_prev_version_build(clust_rec, &mtr, version,
+					    clust_index, clust_offsets,
+					    heap, &prev_version);
 		mem_heap_free(heap2); /* free version and clust_offsets */
 
 		if (prev_version) {


Attachment: [text/bzr-bundle] bzr/vasil.dimov@oracle.com-20100914115013-k373nvkkgoi1hxul.bundle
Thread
bzr commit into mysql-5.1-innodb branch (vasil.dimov:3570) Bug#55227vasil.dimov14 Sep