1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Tag push_warning_printf with ATTRIBUTE_FORMAT

* Let GCC `-Wformat` check formats sent to these `my_vsnprintf_ex` users
* Migrate them from the old extension specifiers
  to the new `-Wformat`-compatible suffixes
This commit is contained in:
ParadoxV5
2025-01-12 21:55:23 -07:00
committed by Sergei Golubchik
parent 2047483417
commit d5ba6f71b9
9 changed files with 23 additions and 22 deletions

View File

@@ -1884,7 +1884,7 @@ bool Sql_cmd_delete::prepare_inner(THD *thd)
{
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
WARN_INDEX_HINTS_IGNORED,
ER_THD(thd, WARN_INDEX_HINTS_IGNORED));
"%s", ER_THD(thd, WARN_INDEX_HINTS_IGNORED));
}
}
if (table_list->vers_conditions.is_set() && table_list->is_view_or_derived())