Skip to content

Commit

Permalink
MDEV-28534: clang-12 compile warnings
Browse files Browse the repository at this point in the history
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;
           ^
  • Loading branch information
grooverdan committed May 11, 2022
1 parent fe3d07c commit 09ee95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -6475,9 +6475,9 @@ class Item_default_value : public Item_field
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 */
Expand Down

0 comments on commit 09ee95e

Please sign in to comment.