diff options
author | unknown <msvensson@shellback.(none)> | 2006-10-12 20:15:56 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-10-12 20:15:56 +0200 |
commit | 23e941505592fa7f282f47d12e89e63ef236f2ca (patch) | |
tree | 3eabd140b981cc0927eec091e64921a0899e4c4d /include | |
parent | f371303eaf83f4ac3935f07f136d2b54cdecbf0a (diff) | |
download | mariadb-git-23e941505592fa7f282f47d12e89e63ef236f2ca.tar.gz |
Add ATTRIBUTE_FORMAT specifier to _db_doprnt, which is used by DBUG_PRINT
This will hopefully avoiid annoying crashes when running with --debug
Fix warnings from the above in mysqltest.c
client/mysqltest.c:
Fix format specifier warnings in mysqltest.c
include/my_dbug.h:
Add ATTRIBUTE_FORMAT specifier to _db_doprnt, which is used by DBUG_PRINT
This will hopefully avoiid annoying crashes when running with --debug
Diffstat (limited to 'include')
-rw-r--r-- | include/my_dbug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h index 711ece4335c..d2f6e40f3c6 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -35,7 +35,8 @@ extern void _db_enter_(const char *_func_,const char *_file_,uint _line_, extern void _db_return_(uint _line_,const char **_sfunc_,const char **_sfile_, uint *_slevel_); extern void _db_pargs_(uint _line_,const char *keyword); -extern void _db_doprnt_ _VARARGS((const char *format,...)); +extern void _db_doprnt_ _VARARGS((const char *format,...)) + ATTRIBUTE_FORMAT(printf, 1, 2); extern void _db_dump_(uint _line_,const char *keyword,const char *memory, uint length); extern void _db_output_(); |