mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Tag the sql/log.h
family with ATTRIBUTE_FORMAT
Let GCC `-Wformat` check formats sent to these users of `my_vsnprintf_ex` users (heh)
This commit is contained in:
committed by
Sergei Golubchik
parent
21dfef474c
commit
2392bd02d8
@@ -54,7 +54,7 @@ extern "C" {
|
||||
/* Skip writing to the error log to avoid mtr complaints */
|
||||
DBUG_EXECUTE_IF("simulate_out_of_memory", return;);
|
||||
|
||||
sql_print_error(ER_DEFAULT(ER_OUT_OF_RESOURCES));
|
||||
sql_print_error("%s", ER_DEFAULT(ER_OUT_OF_RESOURCES));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user