1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-18 23:03:28 +03:00

MDEV-33746 Supply missing override markings

Find and fix missing virtual override markings.  Updates cmake
maintainer flags to include -Wsuggest-override and
-Winconsistent-missing-override.
This commit is contained in:
Dave Gosselin
2024-06-12 09:46:26 -04:00
committed by Dave Gosselin
parent ab448d4b34
commit db0c28eff8
306 changed files with 8808 additions and 8781 deletions

View File

@ -129,7 +129,7 @@ public:
~Sql_cmd_alter_table_exchange_partition() = default;
bool execute(THD *thd);
bool execute(THD *thd) override;
private:
bool exchange_partition(THD *thd, TABLE_LIST *, Alter_info *);
@ -151,10 +151,10 @@ public:
~Sql_cmd_alter_table_analyze_partition() = default;
bool execute(THD *thd);
bool execute(THD *thd) override;
/* Override SQLCOM_ANALYZE, since it is an ALTER command */
virtual enum_sql_command sql_command_code() const
enum_sql_command sql_command_code() const override
{
return SQLCOM_ALTER_TABLE;
}
@ -176,10 +176,10 @@ public:
~Sql_cmd_alter_table_check_partition() = default;
bool execute(THD *thd);
bool execute(THD *thd) override;
/* Override SQLCOM_CHECK, since it is an ALTER command */
virtual enum_sql_command sql_command_code() const
enum_sql_command sql_command_code() const override
{
return SQLCOM_ALTER_TABLE;
}
@ -201,10 +201,10 @@ public:
~Sql_cmd_alter_table_optimize_partition() = default;
bool execute(THD *thd);
bool execute(THD *thd) override;
/* Override SQLCOM_OPTIMIZE, since it is an ALTER command */
virtual enum_sql_command sql_command_code() const
enum_sql_command sql_command_code() const override
{
return SQLCOM_ALTER_TABLE;
}
@ -226,10 +226,10 @@ public:
~Sql_cmd_alter_table_repair_partition() = default;
bool execute(THD *thd);
bool execute(THD *thd) override;
/* Override SQLCOM_REPAIR, since it is an ALTER command */
virtual enum_sql_command sql_command_code() const
enum_sql_command sql_command_code() const override
{
return SQLCOM_ALTER_TABLE;
}
@ -249,10 +249,10 @@ public:
virtual ~Sql_cmd_alter_table_truncate_partition() = default;
bool execute(THD *thd);
bool execute(THD *thd) override;
/* Override SQLCOM_TRUNCATE, since it is an ALTER command */
virtual enum_sql_command sql_command_code() const
enum_sql_command sql_command_code() const override
{
return SQLCOM_ALTER_TABLE;
}