diff options
author | monty@mysql.com/narttu.mysql.fi <> | 2007-02-22 16:59:57 +0200 |
---|---|---|
committer | monty@mysql.com/narttu.mysql.fi <> | 2007-02-22 16:59:57 +0200 |
commit | e5cc397f33e6c9916043742194bbdc809e118905 (patch) | |
tree | 260c15e9d6f383c404ea95e9e68ef07f0eba2cea /sql/sql_show.cc | |
parent | 6946fa682fd6b0f90f17f1bd2bf1bdc9579c0fca (diff) | |
download | mariadb-git-e5cc397f33e6c9916043742194bbdc809e118905.tar.gz |
Fixed compiler warnings (for linux and win32 and win64)
Fixed a couple of usage of not initialized warnings (unlikely cases)
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index c2b2c77fbda..c4b06934fc3 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2515,20 +2515,21 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables, if (file->create_time) { thd->variables.time_zone->gmt_sec_to_TIME(&time, - file->create_time); + (my_time_t) file->create_time); table->field[14]->store_time(&time, MYSQL_TIMESTAMP_DATETIME); table->field[14]->set_notnull(); } if (file->update_time) { thd->variables.time_zone->gmt_sec_to_TIME(&time, - file->update_time); + (my_time_t) file->update_time); table->field[15]->store_time(&time, MYSQL_TIMESTAMP_DATETIME); table->field[15]->set_notnull(); } if (file->check_time) { - thd->variables.time_zone->gmt_sec_to_TIME(&time, file->check_time); + thd->variables.time_zone->gmt_sec_to_TIME(&time, + (my_time_t) file->check_time); table->field[16]->store_time(&time, MYSQL_TIMESTAMP_DATETIME); table->field[16]->set_notnull(); } |