diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-05-27 14:51:13 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-05-27 14:51:13 +0000 |
commit | 982959c04f8d25f5513c6c52ec47cf6c166fa084 (patch) | |
tree | 7d63b5928f7fbcd764dc222822fa17e67d774c33 /include/asterisk/compat.h | |
parent | 6006f40c144d20659ffbb8a751df0fd73022478f (diff) |
Add printf attribute to asprintf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r-- | include/asterisk/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index 43da49bc0..4ba4c46d4 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -74,7 +74,7 @@ #endif #if !defined(HAVE_ASPRINTF) && !defined(__AST_DEBUG_MALLOC) -int asprintf(char **str, const char *fmt, ...); +int __attribute__ ((format (printf, 2, 3))) asprintf(char **str, const char *fmt, ...); #endif #ifndef HAVE_GETLOADAVG |