From a73199e31abb0255467f2bf5b5671f34707ad228 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 1 Jul 2014 13:39:25 -0700 Subject: 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 --- ui/simple_dialog.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ui/simple_dialog.h') 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. -- cgit v1.2.1