diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-29 16:58:29 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-29 16:58:29 +0000 |
commit | 81fa0b3582ba4f23dd3f6bfa576fdd7ac531a127 (patch) | |
tree | 2abe23f0b4942edf470a41b1a8cef51a073fc887 /include/asterisk/channel.h | |
parent | e27acaa5de2958e98e05ddb82231231b73882945 (diff) |
update dev-mode compiler flags to match the ones used by default on Ubuntu Intrepid, so all developers will see the same warnings and errors
since this branch already had some printf format attributes, enable checking for them and tag functions that didn't have them
format attributes in a consistent way
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@159808 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index ea4dac2bc..a550101ea 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -627,7 +627,7 @@ int ast_setstate(struct ast_channel *chan, enum ast_channel_state); by default set to the "default" context and extension "s" */ -struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_num, const char *cid_name, const char *acctcode, const char *exten, const char *context, const int amaflag, const char *name_fmt, ...); +struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_num, const char *cid_name, const char *acctcode, const char *exten, const char *context, const int amaflag, const char *name_fmt, ...) __attribute__((format(printf, 9, 10))); /*! \brief Queue an outgoing frame */ int ast_queue_frame(struct ast_channel *chan, struct ast_frame *f); @@ -1152,8 +1152,7 @@ void ast_set_callerid(struct ast_channel *chan, const char *cidnum, const char * /*! return a mallocd string with the result of sprintf of the fmt and following args */ -char *ast_safe_string_alloc(const char *fmt, ...); - +char __attribute__((format(printf, 1, 2))) *ast_safe_string_alloc(const char *fmt, ...); /*! Start a tone going */ |