diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-11-28 00:02:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-11-28 00:02:39 +0000 |
commit | 186ce16c5284ae6ac423810b3dfec4f0897ded79 (patch) | |
tree | 9e776ec58c602c27431f4808859597dc657a2f29 /main_statusbar.h | |
parent | 1a4a8ff9c3a950611aa0f88bb5749b23fa85e1ea (diff) | |
download | wireshark-186ce16c5284ae6ac423810b3dfec4f0897ded79.tar.gz wireshark-186ce16c5284ae6ac423810b3dfec4f0897ded79.tar.bz2 wireshark-186ce16c5284ae6ac423810b3dfec4f0897ded79.zip |
Add GCC-style printf annotation to the routines that now take a format
string and format arguments, and fix issues warned about by that.
svn path=/trunk/; revision=35044
Diffstat (limited to 'main_statusbar.h')
-rw-r--r-- | main_statusbar.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main_statusbar.h b/main_statusbar.h index 92ecd27c44..a15aa4e158 100644 --- a/main_statusbar.h +++ b/main_statusbar.h @@ -34,7 +34,8 @@ void status_expert_update(void); * * @param msg_format The format string for the message */ -void statusbar_push_field_msg(const gchar *msg_format, ...); +void statusbar_push_field_msg(const gchar *msg_format, ...) + G_GNUC_PRINTF(1, 2); /** Pop a message referring to the currently-selected field off the statusbar. */ @@ -45,7 +46,8 @@ void statusbar_pop_field_msg(void); * * @param msg_format The format string for the message */ -void statusbar_push_filter_msg(const gchar *msg_format, ...); +void statusbar_push_filter_msg(const gchar *msg_format, ...) + G_GNUC_PRINTF(1, 2); /** Pop a message referring to the current filter off the statusbar. */ @@ -56,6 +58,7 @@ void statusbar_pop_filter_msg(void); * * @param msg_format The format string for the message */ -void statusbar_push_temporary_msg(const gchar *msg_format, ...); +void statusbar_push_temporary_msg(const gchar *msg_format, ...) + G_GNUC_PRINTF(1, 2); #endif /* __MAIN_STATUSBAR_H__ */ |