1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix GCC 11.2.0 -Wmaybe-uninitialized

TABLE_LIST::calc_md5(): Remove an untruthful const qualifier.

thd_get_query_start_data(): Pass empty_clex_str instead of
an uninitialized LEX_CSTRING.
This commit is contained in:
Marko Mäkelä
2021-08-23 09:00:37 +03:00
parent e4901d9523
commit 8a33d36dac
4 changed files with 9 additions and 9 deletions

View File

@@ -5156,8 +5156,8 @@ extern "C" bool thd_is_strict_mode(const MYSQL_THD thd)
*/
void thd_get_query_start_data(THD *thd, char *buf)
{
LEX_CSTRING field_name;
Field_timestampf f((uchar *)buf, NULL, 0, Field::NONE, &field_name, NULL, 6);
Field_timestampf f((uchar *)buf, NULL, 0, Field::NONE, &empty_clex_str,
NULL, 6);
f.store_TIME(thd->query_start(), thd->query_start_sec_part());
}