diff options
author | Vasil Dimov <vasil.dimov@oracle.com> | 2010-09-15 18:37:24 +0300 |
---|---|---|
committer | Vasil Dimov <vasil.dimov@oracle.com> | 2010-09-15 18:37:24 +0300 |
commit | 8d543ffa0b131faca40324d59a969e53601ce872 (patch) | |
tree | 47f2f45265bde2732bd6cebe7c8787cee9b49e1c /storage | |
parent | dac4573273a487b2d3b4bb76144159e350934b17 (diff) | |
download | mariadb-git-8d543ffa0b131faca40324d59a969e53601ce872.tar.gz |
(partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6
Fix compiler warning:
row/row0purge.c: In function 'row_purge_step':
row/row0purge.c:687:9: error: variable 'err' set but not used [-Werror=unused-but-set-variable]
Diffstat (limited to 'storage')
-rw-r--r-- | storage/innodb_plugin/row/row0purge.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/storage/innodb_plugin/row/row0purge.c b/storage/innodb_plugin/row/row0purge.c index 835af990672..31b255cf2d4 100644 --- a/storage/innodb_plugin/row/row0purge.c +++ b/storage/innodb_plugin/row/row0purge.c @@ -684,7 +684,9 @@ row_purge_step( que_thr_t* thr) /*!< in: query thread */ { purge_node_t* node; +#ifdef UNIV_DEBUG ulint err; +#endif /* UNIV_DEBUG */ ut_ad(thr); @@ -692,7 +694,10 @@ row_purge_step( ut_ad(que_node_get_type(node) == QUE_NODE_PURGE); - err = row_purge(node, thr); +#ifdef UNIV_DEBUG + err = +#endif /* UNIV_DEBUG */ + row_purge(node, thr); ut_ad(err == DB_SUCCESS); |