Mercurial > pidgin.yaz
changeset 17352:86b4862b7a02
Add GCC sentinal attribute to msim_send().
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Sun, 03 Jun 2007 04:40:15 +0000 |
parents | 437381cd780a |
children | 1905859d7a3b |
files | libpurple/protocols/myspace/message.h |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.h Sun Jun 03 04:35:03 2007 +0000 +++ b/libpurple/protocols/myspace/message.h Sun Jun 03 04:40:15 2007 +0000 @@ -54,7 +54,14 @@ /* Defined in myspace.h */ struct _MsimSession; -gboolean msim_send(struct _MsimSession *session, ...); +gboolean msim_send(struct _MsimSession *session, ...) +#ifdef __GNUC__ + /* Cause gcc to emit "a missing sentinel in function call" if forgot + * to write NULL as last, terminating parameter. */ + __attribute__((__sentinel__(0))) +#endif + ; + gboolean msim_msg_send(struct _MsimSession *session, MsimMessage *msg); MsimMessage *msim_parse(gchar *raw);