Changeset 1dcbd3e


Ignore:
Timestamp:
2018-02-11T20:09:43Z (20 months ago)
Author:
dequis <dx@…>
Branches:
master
Children:
16ea00d
Parents:
d168091
Message:

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    rd168091 r1dcbd3e  
    311311void irc_channel_set_mode(irc_channel_t *ic, const char *s);
    312312void irc_channel_auto_joins(irc_t *irc, struct account *acc);
    313 void irc_channel_printf(irc_channel_t *ic, char *format, ...);
     313void irc_channel_printf(irc_channel_t *ic, char *format, ...) G_GNUC_PRINTF(2, 3);
    314314gboolean irc_channel_name_ok(const char *name);
    315315void irc_channel_name_strip(char *name);
     
    330330void irc_send_motd(irc_t *irc);
    331331const char *irc_user_msgdest(irc_user_t *iu);
    332 void irc_rootmsg(irc_t *irc, char *format, ...);
    333 void irc_usermsg(irc_user_t *iu, char *format, ...);
    334 void irc_usernotice(irc_user_t *iu, char *format, ...);
     332void irc_rootmsg(irc_t *irc, char *format, ...) G_GNUC_PRINTF(2, 3);
     333void irc_usermsg(irc_user_t *iu, char *format, ...) G_GNUC_PRINTF(2, 3);
     334void irc_usernotice(irc_user_t *iu, char *format, ...) G_GNUC_PRINTF(2, 3);
    335335void irc_send_join(irc_channel_t *ic, irc_user_t *iu);
    336336void irc_send_part(irc_channel_t *ic, irc_user_t *iu, const char *reason);
  • root_commands.c

    rd168091 r1dcbd3e  
    12361236#endif
    12371237
    1238         irc_rootmsg(irc, "");
     1238        irc_rootmsg(irc, " ");
    12391239
    12401240        gstr = g_string_new(NULL);
Note: See TracChangeset for help on using the changeset viewer.