Add printf attribute to asprintf

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2008-05-27 14:51:13 +00:00
parent 6006f40c14
commit 982959c04f

View File

@@ -74,7 +74,7 @@
#endif #endif
#if !defined(HAVE_ASPRINTF) && !defined(__AST_DEBUG_MALLOC) #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 #endif
#ifndef HAVE_GETLOADAVG #ifndef HAVE_GETLOADAVG