summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-10-18 13:44:12 +0300
committerunknown <sanja@askmonty.org>2011-10-18 13:44:12 +0300
commit527722db3fb88ae9edb85df7a31031e2d9f8a8dc (patch)
tree8d947e1a98f7f3eb9dce22ee44e49276d357ea4f /sql/table.cc
parent19e1c0aaf7d0783787f519a6412635fb57686644 (diff)
downloadmariadb-git-527722db3fb88ae9edb85df7a31031e2d9f8a8dc.tar.gz
Compiler warning about assigned but not used variables fixed.
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/table.cc b/sql/table.cc
index d54135b5620..2acd11e3fd2 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -5378,7 +5378,7 @@ void TABLE::use_index(int key_to_save)
/* Drop all keys; */
i= 0;
- s->keys= (key_to_save < 0) ? 0 : 1;
+ s->keys= i;
}
/**
@@ -5689,7 +5689,7 @@ int update_virtual_fields(THD *thd, TABLE *table, bool for_write)
{
DBUG_ENTER("update_virtual_fields");
Field **vfield_ptr, *vfield;
- int error= 0;
+ int error __attribute__ ((unused))= 0;
if (!table || !table->vfield)
DBUG_RETURN(0);