1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +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

@@ -1332,7 +1332,8 @@ void push_warning(THD *thd, Sql_condition::enum_warning_level level,
uint code, const char *msg);
void push_warning_printf(THD *thd, Sql_condition::enum_warning_level level,
uint code, const char *format, ...);
uint code, const char *format, ...)
ATTRIBUTE_FORMAT(printf, 4, 5);
bool mysqld_show_warnings(THD *thd, ulong levels_to_show);