Commit 1d30dfdc authored by msvensson@shellback's avatar msvensson@shellback

Remove unused variable

parent 21001c6d
...@@ -524,7 +524,6 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd, ...@@ -524,7 +524,6 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd,
int ha_heap::delete_table(const char *name) int ha_heap::delete_table(const char *name)
{ {
char buff[FN_REFLEN];
int error= heap_delete_table(name); int error= heap_delete_table(name);
return error == ENOENT ? 0 : error; return error == ENOENT ? 0 : error;
} }
......
...@@ -445,8 +445,6 @@ static my_bool init_handlerton(THD *unused1, st_plugin_int *plugin, ...@@ -445,8 +445,6 @@ static my_bool init_handlerton(THD *unused1, st_plugin_int *plugin,
int ha_init() int ha_init()
{ {
int error= 0; int error= 0;
handlerton **types;
show_table_alias_st *table_alias;
total_ha= savepoint_alloc_size= 0; total_ha= savepoint_alloc_size= 0;
if (ha_init_errors()) if (ha_init_errors())
......
...@@ -2028,7 +2028,6 @@ void Item_date_add_interval::fix_length_and_dec() ...@@ -2028,7 +2028,6 @@ void Item_date_add_interval::fix_length_and_dec()
bool Item_date_add_interval::get_date(TIME *ltime, uint fuzzy_date) bool Item_date_add_interval::get_date(TIME *ltime, uint fuzzy_date)
{ {
long period,sign;
INTERVAL interval; INTERVAL interval;
if (args[0]->get_date(ltime, TIME_NO_ZERO_DATE) || if (args[0]->get_date(ltime, TIME_NO_ZERO_DATE) ||
......
...@@ -468,7 +468,6 @@ int key_rec_cmp(void *key, byte *first_rec, byte *second_rec) ...@@ -468,7 +468,6 @@ int key_rec_cmp(void *key, byte *first_rec, byte *second_rec)
do do
{ {
Field *field= key_part->field; Field *field= key_part->field;
uint length;
if (key_part->null_bit) if (key_part->null_bit)
{ {
......
...@@ -717,8 +717,6 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length, ...@@ -717,8 +717,6 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length,
bool error= FALSE; bool error= FALSE;
Log_event_handler **current_handler= slow_log_handler_list; Log_event_handler **current_handler= slow_log_handler_list;
bool is_command= FALSE; bool is_command= FALSE;
char message_buff[MAX_LOG_BUFFER_SIZE];
char user_host_buff[MAX_USER_HOST_SIZE]; char user_host_buff[MAX_USER_HOST_SIZE];
my_time_t current_time; my_time_t current_time;
......
...@@ -668,7 +668,6 @@ db_update_routine(THD *thd, int type, sp_name *name, st_sp_chistics *chistics) ...@@ -668,7 +668,6 @@ db_update_routine(THD *thd, int type, sp_name *name, st_sp_chistics *chistics)
{ {
TABLE *table; TABLE *table;
int ret; int ret;
bool opened;
DBUG_ENTER("db_update_routine"); DBUG_ENTER("db_update_routine");
DBUG_PRINT("enter", ("type: %d name: %.*s", DBUG_PRINT("enter", ("type: %d name: %.*s",
type, name->m_name.length, name->m_name.str)); type, name->m_name.length, name->m_name.str));
......
...@@ -124,7 +124,6 @@ void sp_cache_clear(sp_cache **cp) ...@@ -124,7 +124,6 @@ void sp_cache_clear(sp_cache **cp)
void sp_cache_insert(sp_cache **cp, sp_head *sp) void sp_cache_insert(sp_cache **cp, sp_head *sp)
{ {
sp_cache *c; sp_cache *c;
ulong v;
if (!(c= *cp)) if (!(c= *cp))
{ {
......
...@@ -1408,10 +1408,7 @@ void update_non_unique_table_error(TABLE_LIST *update, ...@@ -1408,10 +1408,7 @@ void update_non_unique_table_error(TABLE_LIST *update,
TABLE *find_temporary_table(THD *thd, const char *db, const char *table_name) TABLE *find_temporary_table(THD *thd, const char *db, const char *table_name)
{ {
char key[MAX_DBKEY_LENGTH];
uint key_length;
TABLE_LIST table_list; TABLE_LIST table_list;
TABLE *table;
table_list.db= (char*) db; table_list.db= (char*) db;
table_list.table_name= (char*) table_name; table_list.table_name= (char*) table_name;
...@@ -1939,7 +1936,6 @@ TABLE *open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root, ...@@ -1939,7 +1936,6 @@ TABLE *open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root,
} }
else else
{ {
TABLE_SHARE *share;
/* Free cache if too big */ /* Free cache if too big */
while (open_cache.records > table_cache_size && unused_tables) while (open_cache.records > table_cache_size && unused_tables)
VOID(hash_delete(&open_cache,(byte*) unused_tables)); /* purecov: tested */ VOID(hash_delete(&open_cache,(byte*) unused_tables)); /* purecov: tested */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment