summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-11-16 18:24:58 +0100
committerSergei Golubchik <serg@mariadb.org>2018-11-20 15:05:58 +0100
commitcd29aee50d75918a94b5d019c78a459c2824d7e0 (patch)
treece496e970c637e563655130d08e3cafb773034ce /sql/item_subselect.cc
parent1823ce7304b3fc9328181476319a53824b81626c (diff)
downloadmariadb-git-cd29aee50d75918a94b5d019c78a459c2824d7e0.tar.gz
misc cleanup
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 7408dc378ef..4a1ed59d7df 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -5795,7 +5795,7 @@ int
Ordered_key::cmp_keys_by_row_data(ha_rows a, ha_rows b)
{
uchar *rowid_a, *rowid_b;
- int __attribute__((unused)) error;
+ int error;
int cmp_res;
/* The length in bytes of the rowids (positions) of tmp_table. */
uint rowid_length= tbl->file->ref_length;
@@ -5892,7 +5892,7 @@ int Ordered_key::cmp_key_with_search_key(rownum_t row_num)
/* The length in bytes of the rowids (positions) of tmp_table. */
uint rowid_length= tbl->file->ref_length;
uchar *cur_rowid= row_num_to_rowid + row_num * rowid_length;
- int __attribute__((unused)) error;
+ int error;
int cmp_res;
if (unlikely((error= tbl->file->ha_rnd_pos(tbl->record[0], cur_rowid))))