diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-07-18 11:25:41 +1000 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-07-18 07:09:07 -0400 |
commit | 93caf4c7b4e6b7d1f3424263df8ac97397f48d13 (patch) | |
tree | 9a554e04c11c654f1ef05f47b0a1a059c1e16742 /src/common/hexchat-plugin.h | |
parent | 21c0e478690f36322fd4f40c031a4407c8485879 (diff) |
Use GNUC format attribute on print functions
Closes #1059
Diffstat (limited to 'src/common/hexchat-plugin.h')
-rw-r--r-- | src/common/hexchat-plugin.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/common/hexchat-plugin.h b/src/common/hexchat-plugin.h index 61597181..002c0c49 100644 --- a/src/common/hexchat-plugin.h +++ b/src/common/hexchat-plugin.h @@ -88,11 +88,19 @@ struct _hexchat_plugin void (*hexchat_print) (hexchat_plugin *ph, const char *text); void (*hexchat_printf) (hexchat_plugin *ph, - const char *format, ...); + const char *format, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif + ; void (*hexchat_command) (hexchat_plugin *ph, const char *command); void (*hexchat_commandf) (hexchat_plugin *ph, - const char *format, ...); + const char *format, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif + ; int (*hexchat_nickcmp) (hexchat_plugin *ph, const char *s1, const char *s2); @@ -254,7 +262,11 @@ hexchat_print (hexchat_plugin *ph, void hexchat_printf (hexchat_plugin *ph, - const char *format, ...); + const char *format, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif +; void hexchat_command (hexchat_plugin *ph, @@ -262,7 +274,11 @@ hexchat_command (hexchat_plugin *ph, void hexchat_commandf (hexchat_plugin *ph, - const char *format, ...); + const char *format, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif +; int hexchat_nickcmp (hexchat_plugin *ph, |