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
@@ -477,7 +477,7 @@ static int add_collation(struct charset_info_st *cs)
|
||||
Report character set initialization errors and warnings.
|
||||
Be silent by default: no warnings on the client side.
|
||||
*/
|
||||
static void
|
||||
ATTRIBUTE_FORMAT(printf, 2, 3) static void
|
||||
default_reporter(enum loglevel level __attribute__ ((unused)),
|
||||
const char *format __attribute__ ((unused)),
|
||||
...)
|
||||
|
Reference in New Issue
Block a user