]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add printf attribute to asprintf
authorRussell Bryant <russell@russellbryant.com>
Tue, 27 May 2008 14:51:13 +0000 (14:51 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 27 May 2008 14:51:13 +0000 (14:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118328 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/compat.h

index 43da49bc0582ad272b6a49d6b5dde0d574841da6..4ba4c46d4ba68306e5917342a7ebcedd5c24fd79 100644 (file)
@@ -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