summaryrefslogtreecommitdiff
path: root/sql/sql_time.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-08-11 15:48:58 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-08-11 15:58:16 +0300
commit31aef3ae99dff6b7154cf288b3dc508d367f19f8 (patch)
tree023c7584efc6a06809c925593bfe53842df7dc4f /sql/sql_time.cc
parent57d1a5fa8ed925b03d28aea3fab82de0823e68a8 (diff)
downloadmariadb-git-31aef3ae99dff6b7154cf288b3dc508d367f19f8.tar.gz
Fix GCC 10.2.0 -Og -Wmaybe-uninitialized
For some reason, GCC emits more -Wmaybe-uninitialized warnings when using the flag -Og than when using -O2. Many of the warnings look genuine.
Diffstat (limited to 'sql/sql_time.cc')
-rw-r--r--sql/sql_time.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_time.cc b/sql/sql_time.cc
index 7f5919007e8..b92b35a3abb 100644
--- a/sql/sql_time.cc
+++ b/sql/sql_time.cc
@@ -358,7 +358,7 @@ static bool number_to_time_with_warn(bool neg, ulonglong nr, ulong sec_part,
int was_cut;
longlong res;
enum_field_types f_type;
- bool have_warnings;
+ bool have_warnings= false;
if (fuzzydate & TIME_TIME_ONLY)
{