summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2022-05-11 13:24:39 +1000
committerDaniel Black <daniel@mariadb.org>2022-05-11 13:26:02 +1000
commit09ee95e33ef41a9b7c47eefd0abde5b1a246a93f (patch)
tree9c37c43abedd3aedabfefb49f31c3400a1d1773d /sql/item.h
parentfe3d07cab82b2215dc64f52ac93122072c33d021 (diff)
downloadmariadb-git-09ee95e33ef41a9b7c47eefd0abde5b1a246a93f.tar.gz
MDEV-28534: clang-12 compile warnings
Errors where: /buildbot/amd64-ubuntu-2004-msan/build/sql/item.h:6478:12: error: 'val_datetime_packed' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override] longlong val_datetime_packed(THD *thd) ^ /buildbot/amd64-ubuntu-2004-msan/build/sql/item.h:3501:12: note: overridden virtual function is here longlong val_datetime_packed(THD *thd) override; ^ /buildbot/amd64-ubuntu-2004-msan/build/sql/item.h:6480:12: error: 'val_time_packed' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override] longlong val_time_packed(THD *thd) ^ /buildbot/amd64-ubuntu-2004-msan/build/sql/item.h:3502:12: note: overridden virtual function is here longlong val_time_packed(THD *thd) override; ^
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h
index 5af6dc3bf49..a6de33c0c3a 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -6475,9 +6475,9 @@ public:
bool get_date(THD *thd, MYSQL_TIME *ltime,date_mode_t fuzzydate) override;
bool val_native(THD *thd, Native *to) override;
bool val_native_result(THD *thd, Native *to) override;
- longlong val_datetime_packed(THD *thd)
+ longlong val_datetime_packed(THD *thd) override
{ return Item::val_datetime_packed(thd); }
- longlong val_time_packed(THD *thd)
+ longlong val_time_packed(THD *thd) override
{ return Item::val_time_packed(thd); }
/* Result variants */