From: Russell Bryant Date: Tue, 27 May 2008 14:51:13 +0000 (+0000) Subject: Add printf attribute to asprintf X-Git-Tag: 1.6.2.0-beta1~2153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982959c04f8d25f5513c6c52ec47cf6c166fa084;p=thirdparty%2Fasterisk.git Add printf attribute to asprintf git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118328 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index 43da49bc05..4ba4c46d4b 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