diff options
author | msvensson@shellback.(none) <> | 2006-10-12 20:15:56 +0200 |
---|---|---|
committer | msvensson@shellback.(none) <> | 2006-10-12 20:15:56 +0200 |
commit | 889e7147f69368edbba4b713df684f0f6cd93555 (patch) | |
tree | 3eabd140b981cc0927eec091e64921a0899e4c4d /include | |
parent | 1be01ceea83af69268e0905a759e3a2debee8d1c (diff) | |
download | mariadb-git-889e7147f69368edbba4b713df684f0f6cd93555.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
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_(); |