summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mysql.com>2009-10-30 19:13:58 +0100
committerSergei Golubchik <serg@mysql.com>2009-10-30 19:13:58 +0100
commit6eaf0b5acb272698967f702f7ecec120571578c9 (patch)
tree53d531c0319fefc2db3ea6c70ceb4648c3cb4ed9 /sql/sql_select.cc
parent96f31b3637589587bbc343a76dbc686441ac4b16 (diff)
downloadmariadb-git-6eaf0b5acb272698967f702f7ecec120571578c9.tar.gz
backport of dbug extensions from 6.0:
function/ syntax glob(7) wildcards unit tests
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index fe0ecae6629..7bd373207ec 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -5079,8 +5079,8 @@ greedy_search(JOIN *join,
the interleaving state to the one of the non-extended partial plan
on exit.
*/
- IF_DBUG(bool is_interleave_error= )
- check_interleaving_with_nj (best_table);
+ bool is_interleave_error __attribute__((unused))=
+ check_interleaving_with_nj (best_table);
/* This has been already checked by best_extension_by_limited_search */
DBUG_ASSERT(!is_interleave_error);
@@ -15045,7 +15045,7 @@ setup_copy_fields(THD *thd, TMP_TABLE_PARAM *param,
Item *pos;
List_iterator_fast<Item> li(all_fields);
Copy_field *copy= NULL;
- IF_DBUG(Copy_field *copy_start);
+ Copy_field *copy_start __attribute__((unused));
res_selected_fields.empty();
res_all_fields.empty();
List_iterator_fast<Item> itr(res_all_fields);
@@ -15058,7 +15058,7 @@ setup_copy_fields(THD *thd, TMP_TABLE_PARAM *param,
goto err2;
param->copy_funcs.empty();
- IF_DBUG(copy_start= copy);
+ copy_start= copy;
for (i= 0; (pos= li++); i++)
{
Field *field;