Commit a19ddf01 authored by Igor Babaev's avatar Igor Babaev

Fixed compiler warnings.

parent 8ec03d80
...@@ -3239,7 +3239,7 @@ void st_select_lex::append_table_to_list(TABLE_LIST *TABLE_LIST::*link, ...@@ -3239,7 +3239,7 @@ void st_select_lex::append_table_to_list(TABLE_LIST *TABLE_LIST::*link,
TABLE_LIST *table) TABLE_LIST *table)
{ {
TABLE_LIST *tl; TABLE_LIST *tl;
for (tl= leaf_tables.head(); tl->*link; tl= tl->*link); for (tl= leaf_tables.head(); tl->*link; tl= tl->*link) ;
tl->*link= table; tl->*link= table;
} }
......
...@@ -7793,10 +7793,10 @@ bool generate_derived_keys(DYNAMIC_ARRAY *keyuse_array) ...@@ -7793,10 +7793,10 @@ bool generate_derived_keys(DYNAMIC_ARRAY *keyuse_array)
TABLE *prev_table= 0; TABLE *prev_table= 0;
for (uint i= 0; i < elements; i++, keyuse++) for (uint i= 0; i < elements; i++, keyuse++)
{ {
KEYUSE *first_table_keyuse; KEYUSE *first_table_keyuse= NULL;
table_map last_used_tables; table_map last_used_tables= 0;
uint count; uint count= 0;
uint keys; uint keys= 0;
TABLE_LIST *derived= NULL; TABLE_LIST *derived= NULL;
if (keyuse->table != prev_table) if (keyuse->table != prev_table)
derived= keyuse->table->pos_in_table_list; derived= keyuse->table->pos_in_table_list;
......
...@@ -356,8 +356,8 @@ bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result, ...@@ -356,8 +356,8 @@ bool st_select_lex_unit::prepare(THD *thd_arg, select_result *sel_result,
List_iterator_fast<Item> tp(types); List_iterator_fast<Item> tp(types);
Item *type; Item *type;
ulonglong create_options; ulonglong create_options;
uint save_tablenr; uint save_tablenr= 0;
table_map save_map; table_map save_map= 0;
while ((type= tp++)) while ((type= tp++))
{ {
......
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