diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-07-01 13:39:25 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-07-01 20:39:51 +0000 |
commit | a73199e31abb0255467f2bf5b5671f34707ad228 (patch) | |
tree | 9cf03529fbcef39e753c99d701d2b9d6e776e65f /ui | |
parent | 852d5dac9ca5157e5fd90270c1e319cbda47e40f (diff) | |
download | wireshark-a73199e31abb0255467f2bf5b5671f34707ad228.tar.gz |
Use G_GNUC_PRINTF() for simple_message_box().
We don't need to do the right __attribute__ magic ourselves; GLib does
it for us.
Change-Id: Id31943a8413f0272237be4f868659b5bd5e70626
Reviewed-on: https://code.wireshark.org/review/2758
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/simple_dialog.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/simple_dialog.h b/ui/simple_dialog.h index 3355d9beb6..1b71338f27 100644 --- a/ui/simple_dialog.h +++ b/ui/simple_dialog.h @@ -166,11 +166,7 @@ extern void display_queued_messages(void); */ extern void simple_message_box(ESD_TYPE_E type, gboolean *notagain, const char *secondary_msg, - const char *msg_format, ...) -#if __GNUC__ >= 2 - __attribute__((format(printf, 4, 5))) -#endif -; + const char *msg_format, ...) G_GNUC_PRINTF(4, 5); /* * Error alert box, taking a format and a va_list argument. |