summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-08-23 09:00:37 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-08-23 09:00:37 +0300
commit8a33d36dac5330336eca0543d814fa5d97a46361 (patch)
tree0782fd0acc113cf462ae25c2c282e477895e819c /sql/table.h
parente4901d9523ab838ea13bb0278980f8707aa2c581 (diff)
downloadmariadb-git-8a33d36dac5330336eca0543d814fa5d97a46361.tar.gz
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.
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/table.h b/sql/table.h
index 53403bd00fe..8e036e5a8ab 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -1,7 +1,7 @@
#ifndef TABLE_INCLUDED
#define TABLE_INCLUDED
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
- Copyright (c) 2009, 2020, MariaDB
+ Copyright (c) 2009, 2021, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -2562,7 +2562,7 @@ struct TABLE_LIST
List<String> *partition_names;
#endif /* WITH_PARTITION_STORAGE_ENGINE */
- void calc_md5(const char *buffer);
+ void calc_md5(char *buffer);
int view_check_option(THD *thd, bool ignore_failure);
bool create_field_translation(THD *thd);
bool setup_underlying(THD *thd);