diff options
author | jimw@rama.(none) <> | 2006-08-17 12:25:40 -0700 |
---|---|---|
committer | jimw@rama.(none) <> | 2006-08-17 12:25:40 -0700 |
commit | cb6a084076d4688c11936bfa91b03a83570f69e0 (patch) | |
tree | 049d464ebbe02c19d780b0f231fb2b7b2789b6af /include/m_string.h | |
parent | 34c83fba8d108526d481f2844b8d97fce57b5966 (diff) | |
download | mariadb-git-cb6a084076d4688c11936bfa91b03a83570f69e0.tar.gz |
Bug #2717: include/my_global.h mis-defines __attribute__
Fix when __attribute__() is stubbed out, add ATTRIBUTE_FORMAT() for specifying
__attribute__((format(...))) safely, make more use of the format attribute,
and fix some of the warnings that this turns up (plus a bonus unrelated one).
Diffstat (limited to 'include/m_string.h')
-rw-r--r-- | include/m_string.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/m_string.h b/include/m_string.h index d7edff4f626..08408c372b5 100644 --- a/include/m_string.h +++ b/include/m_string.h @@ -247,7 +247,8 @@ extern ulonglong strtoull(const char *str, char **ptr, int base); extern int my_vsnprintf( char *str, size_t n, const char *format, va_list ap ); -extern int my_snprintf(char* to, size_t n, const char* fmt, ...); +extern int my_snprintf(char *to, size_t n, const char *fmt, ...) + ATTRIBUTE_FORMAT(printf, 3, 4); #if defined(__cplusplus) && !defined(OS2) } |