mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Tag ALL my_error_reporter
s with ATTRIBUTE_FORMAT
The function pointer typedef `my_error_reporter` is already tagged. This commit inherits this attribute to all `my_getopt_error_reporter`s and `my_charset_error_reporter`s for consistency. (It future-proofs for deliberate direct uses of those functions.)
This commit is contained in:
committed by
Sergei Golubchik
parent
1c315b3fb1
commit
63b0ee26f7
@@ -1435,6 +1435,7 @@ C_MODE_START
|
||||
@param level log message level
|
||||
@param format log message format string
|
||||
*/
|
||||
ATTRIBUTE_FORMAT(printf, 2, 3)
|
||||
static void buffered_option_error_reporter(enum loglevel level,
|
||||
const char *format, ...)
|
||||
{
|
||||
@@ -1465,6 +1466,7 @@ static void buffered_option_error_reporter(enum loglevel level,
|
||||
to print general character set subsystem initialization errors,
|
||||
such as Index.xml syntax problems, bad XML tag hierarchy, etc.
|
||||
*/
|
||||
ATTRIBUTE_FORMAT(printf, 2, 3)
|
||||
static void charset_error_reporter(enum loglevel level,
|
||||
const char *format, ...)
|
||||
{
|
||||
@@ -8720,7 +8722,7 @@ mysql_getopt_value(const char *name, uint length,
|
||||
return option->value;
|
||||
}
|
||||
|
||||
|
||||
ATTRIBUTE_FORMAT(printf, 2, 3)
|
||||
static void option_error_reporter(enum loglevel level, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
Reference in New Issue
Block a user