From af7bb90ac1866cb1f535a311295983e9acbf7cf7 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 24 Feb 2008 15:46:51 +0000 Subject: [PATCH] (gtk) use G_GNUC_PRINTF where appropriate. --- gtk/util.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gtk/util.h b/gtk/util.h index 0fc607c9f..30a092361 100644 --- a/gtk/util.h +++ b/gtk/util.h @@ -93,21 +93,13 @@ sizingmagic( GtkWindow * wind, GtkScrolledWindow * scroll, /* create an error dialog, if wind is NULL or mapped then show dialog now, otherwise show it when wind becomes mapped */ void -errmsg( GtkWindow * wind, const char * format, ... ) -#ifdef __GNUC__ - __attribute__ (( format ( printf, 2, 3 ) )) -#endif - ; +errmsg( GtkWindow * wind, const char * format, ... ) G_GNUC_PRINTF(2,3); /* create an error dialog but do not gtk_widget_show() it, calls func( data ) when the dialog is closed */ GtkWidget * errmsg_full( GtkWindow * wind, callbackfunc_t func, void * data, - const char * format, ... ) -#ifdef __GNUC__ - __attribute__ (( format ( printf, 4, 5 ) )) -#endif - ; + const char * format, ... ) G_GNUC_PRINTF(4,5); /* varargs version of errmsg_full() */ GtkWidget *