[asterisk-commits] tilghman: branch 1.4 r118055 - /branches/1.4/include/asterisk/utils.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 23 08:18:45 CDT 2008
Author: tilghman
Date: Fri May 23 08:18:44 2008
New Revision: 118055
URL: http://svn.digium.com/view/asterisk?view=rev&rev=118055
Log:
Add format type checking for recently de-inlined function
Modified:
branches/1.4/include/asterisk/utils.h
Modified: branches/1.4/include/asterisk/utils.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/utils.h?view=diff&rev=118055&r1=118054&r2=118055
==============================================================================
--- branches/1.4/include/asterisk/utils.h (original)
+++ branches/1.4/include/asterisk/utils.h Fri May 23 08:18:44 2008
@@ -474,7 +474,7 @@
#define ast_asprintf(ret, fmt, ...) \
_ast_asprintf((ret), __FILE__, __LINE__, __PRETTY_FUNCTION__, fmt, __VA_ARGS__)
-int _ast_asprintf(char **ret, const char *file, int lineno, const char *func, const char *fmt, ...);
+int _ast_asprintf(char **ret, const char *file, int lineno, const char *func, const char *fmt, ...) __attribute__ ((format (printf, 5, 6)));
/*!
* \brief A wrapper for vasprintf()
More information about the asterisk-commits
mailing list