diff options
author | dequis <dx@dxzone.com.ar> | 2018-02-11 17:09:43 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2018-02-11 17:09:43 -0300 |
commit | 1dcbd3eb4da9002c9ed73b6a9f2423bdc3b8ffea (patch) | |
tree | 073db620fbdeecee9c62d41add548b44b60d8df3 /irc.h | |
parent | d16809189df2afac2162945666912ec198b2daa2 (diff) |
irc.h: Add G_GNUC_PRINTF annotations to printf-like functions
The change in root_commands.c is due to -Wformat-zero-length, which is
bs but whatever. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47901
Diffstat (limited to 'irc.h')
-rw-r--r-- | irc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -310,7 +310,7 @@ int irc_channel_set_topic(irc_channel_t *ic, const char *topic, const irc_user_t void irc_channel_user_set_mode(irc_channel_t *ic, irc_user_t *iu, irc_channel_user_flags_t flags); void irc_channel_set_mode(irc_channel_t *ic, const char *s); void irc_channel_auto_joins(irc_t *irc, struct account *acc); -void irc_channel_printf(irc_channel_t *ic, char *format, ...); +void irc_channel_printf(irc_channel_t *ic, char *format, ...) G_GNUC_PRINTF(2, 3); gboolean irc_channel_name_ok(const char *name); void irc_channel_name_strip(char *name); int irc_channel_name_cmp(const char *a_, const char *b_); @@ -329,9 +329,9 @@ void irc_send_num(irc_t *irc, int code, char *format, ...) G_GNUC_PRINTF(3, 4); void irc_send_login(irc_t *irc); void irc_send_motd(irc_t *irc); const char *irc_user_msgdest(irc_user_t *iu); -void irc_rootmsg(irc_t *irc, char *format, ...); -void irc_usermsg(irc_user_t *iu, char *format, ...); -void irc_usernotice(irc_user_t *iu, char *format, ...); +void irc_rootmsg(irc_t *irc, char *format, ...) G_GNUC_PRINTF(2, 3); +void irc_usermsg(irc_user_t *iu, char *format, ...) G_GNUC_PRINTF(2, 3); +void irc_usernotice(irc_user_t *iu, char *format, ...) G_GNUC_PRINTF(2, 3); void irc_send_join(irc_channel_t *ic, irc_user_t *iu); void irc_send_part(irc_channel_t *ic, irc_user_t *iu, const char *reason); void irc_send_quit(irc_user_t *iu, const char *reason); |