Commit 2eb74bec authored by Michael Natterer's avatar Michael Natterer 😴

app: add G_GNUC_PRINTF() to places where the args are a va_list

The trick is to use G_GNUC_PRINTF (n, 0).
parent 297ff1ea
...@@ -203,12 +203,12 @@ void gimp_message (Gimp *gimp, ...@@ -203,12 +203,12 @@ void gimp_message (Gimp *gimp,
GObject *handler, GObject *handler,
GimpMessageSeverity severity, GimpMessageSeverity severity,
const gchar *format, const gchar *format,
...) G_GNUC_PRINTF(4,5); ...) G_GNUC_PRINTF (4, 5);
void gimp_message_valist (Gimp *gimp, void gimp_message_valist (Gimp *gimp,
GObject *handler, GObject *handler,
GimpMessageSeverity severity, GimpMessageSeverity severity,
const gchar *format, const gchar *format,
va_list args); va_list args) G_GNUC_PRINTF (4, 0);
void gimp_message_literal (Gimp *gimp, void gimp_message_literal (Gimp *gimp,
GObject *handler, GObject *handler,
GimpMessageSeverity severity, GimpMessageSeverity severity,
......
...@@ -120,7 +120,7 @@ static gboolean gimp_statusbar_temp_timeout (GimpStatusbar *statusbar) ...@@ -120,7 +120,7 @@ static gboolean gimp_statusbar_temp_timeout (GimpStatusbar *statusbar)
static void gimp_statusbar_msg_free (GimpStatusbarMsg *msg); static void gimp_statusbar_msg_free (GimpStatusbarMsg *msg);
static gchar * gimp_statusbar_vprintf (const gchar *format, static gchar * gimp_statusbar_vprintf (const gchar *format,
va_list args); va_list args) G_GNUC_PRINTF (1, 0);
G_DEFINE_TYPE_WITH_CODE (GimpStatusbar, gimp_statusbar, GTK_TYPE_STATUSBAR, G_DEFINE_TYPE_WITH_CODE (GimpStatusbar, gimp_statusbar, GTK_TYPE_STATUSBAR,
......
...@@ -91,12 +91,12 @@ void gimp_statusbar_push (GimpStatusbar *statusbar ...@@ -91,12 +91,12 @@ void gimp_statusbar_push (GimpStatusbar *statusbar
const gchar *context, const gchar *context,
const gchar *stock_id, const gchar *stock_id,
const gchar *format, const gchar *format,
...) G_GNUC_PRINTF(4,5); ...) G_GNUC_PRINTF (4, 5);
void gimp_statusbar_push_valist (GimpStatusbar *statusbar, void gimp_statusbar_push_valist (GimpStatusbar *statusbar,
const gchar *context, const gchar *context,
const gchar *stock_id, const gchar *stock_id,
const gchar *format, const gchar *format,
va_list args); va_list args) G_GNUC_PRINTF (4, 0);
void gimp_statusbar_push_coords (GimpStatusbar *statusbar, void gimp_statusbar_push_coords (GimpStatusbar *statusbar,
const gchar *context, const gchar *context,
const gchar *stock_id, const gchar *stock_id,
...@@ -117,12 +117,12 @@ void gimp_statusbar_replace (GimpStatusbar *statusbar ...@@ -117,12 +117,12 @@ void gimp_statusbar_replace (GimpStatusbar *statusbar
const gchar *context, const gchar *context,
const gchar *stock_id, const gchar *stock_id,
const gchar *format, const gchar *format,
...) G_GNUC_PRINTF(4,5); ...) G_GNUC_PRINTF (4, 5);
void gimp_statusbar_replace_valist (GimpStatusbar *statusbar, void gimp_statusbar_replace_valist (GimpStatusbar *statusbar,
const gchar *context, const gchar *context,
const gchar *stock_id, const gchar *stock_id,
const gchar *format, const gchar *format,
va_list args); va_list args) G_GNUC_PRINTF (4, 0);
const gchar * gimp_statusbar_peek (GimpStatusbar *statusbar, const gchar * gimp_statusbar_peek (GimpStatusbar *statusbar,
const gchar *context); const gchar *context);
void gimp_statusbar_pop (GimpStatusbar *statusbar, void gimp_statusbar_pop (GimpStatusbar *statusbar,
...@@ -132,12 +132,12 @@ void gimp_statusbar_push_temp (GimpStatusbar *statusbar ...@@ -132,12 +132,12 @@ void gimp_statusbar_push_temp (GimpStatusbar *statusbar
GimpMessageSeverity severity, GimpMessageSeverity severity,
const gchar *stock_id, const gchar *stock_id,
const gchar *format, const gchar *format,
...) G_GNUC_PRINTF(4,5); ...) G_GNUC_PRINTF (4, 5);
void gimp_statusbar_push_temp_valist (GimpStatusbar *statusbar, void gimp_statusbar_push_temp_valist (GimpStatusbar *statusbar,
GimpMessageSeverity severity, GimpMessageSeverity severity,
const gchar *stock_id, const gchar *stock_id,
const gchar *format, const gchar *format,
va_list args); va_list args) G_GNUC_PRINTF (4, 0);
void gimp_statusbar_pop_temp (GimpStatusbar *statusbar); void gimp_statusbar_pop_temp (GimpStatusbar *statusbar);
void gimp_statusbar_update_cursor (GimpStatusbar *statusbar, void gimp_statusbar_update_cursor (GimpStatusbar *statusbar,
......
...@@ -57,7 +57,7 @@ void gimp_logv (GimpLogFlags flags, ...@@ -57,7 +57,7 @@ void gimp_logv (GimpLogFlags flags,
const gchar *function, const gchar *function,
gint line, gint line,
const gchar *format, const gchar *format,
va_list args); va_list args) G_GNUC_PRINTF (4, 0);
#ifdef G_HAVE_ISO_VARARGS #ifdef G_HAVE_ISO_VARARGS
......
...@@ -42,27 +42,36 @@ enum ...@@ -42,27 +42,36 @@ enum
}; };
static void gimp_message_box_constructed (GObject *object); static void gimp_message_box_constructed (GObject *object);
static void gimp_message_box_dispose (GObject *object); static void gimp_message_box_dispose (GObject *object);
static void gimp_message_box_finalize (GObject *object); static void gimp_message_box_finalize (GObject *object);
static void gimp_message_box_set_property (GObject *object, static void gimp_message_box_set_property (GObject *object,
guint property_id, guint property_id,
const GValue *value, const GValue *value,
GParamSpec *pspec); GParamSpec *pspec);
static void gimp_message_box_get_property (GObject *object, static void gimp_message_box_get_property (GObject *object,
guint property_id, guint property_id,
GValue *value, GValue *value,
GParamSpec *pspec); GParamSpec *pspec);
static void gimp_message_box_forall (GtkContainer *container, static void gimp_message_box_forall (GtkContainer *container,
gboolean include_internals, gboolean include_internals,
GtkCallback callback, GtkCallback callback,
gpointer callback_data); gpointer callback_data);
static void gimp_message_box_size_request (GtkWidget *widget, static void gimp_message_box_size_request (GtkWidget *widget,
GtkRequisition *requisition); GtkRequisition *requisition);
static void gimp_message_box_size_allocate (GtkWidget *widget, static void gimp_message_box_size_allocate (GtkWidget *widget,
GtkAllocation *allocation); GtkAllocation *allocation);
static void gimp_message_box_set_label_text (GimpMessageBox *box,
gint n,
const gchar *format,
va_list args) G_GNUC_PRINTF (3, 0);
static void gimp_message_box_set_label_markup (GimpMessageBox *box,
gint n,
const gchar *format,
va_list args) G_GNUC_PRINTF (3, 0);
G_DEFINE_TYPE (GimpMessageBox, gimp_message_box, GTK_TYPE_BOX) G_DEFINE_TYPE (GimpMessageBox, gimp_message_box, GTK_TYPE_BOX)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment