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,
GObject *handler,
GimpMessageSeverity severity,
const gchar *format,
...) G_GNUC_PRINTF(4,5);
...) G_GNUC_PRINTF (4, 5);
void gimp_message_valist (Gimp *gimp,
GObject *handler,
GimpMessageSeverity severity,
const gchar *format,
va_list args);
va_list args) G_GNUC_PRINTF (4, 0);
void gimp_message_literal (Gimp *gimp,
GObject *handler,
GimpMessageSeverity severity,
......
......@@ -120,7 +120,7 @@ static gboolean gimp_statusbar_temp_timeout (GimpStatusbar *statusbar)
static void gimp_statusbar_msg_free (GimpStatusbarMsg *msg);
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,
......
......@@ -91,12 +91,12 @@ void gimp_statusbar_push (GimpStatusbar *statusbar
const gchar *context,
const gchar *stock_id,
const gchar *format,
...) G_GNUC_PRINTF(4,5);
...) G_GNUC_PRINTF (4, 5);
void gimp_statusbar_push_valist (GimpStatusbar *statusbar,
const gchar *context,
const gchar *stock_id,
const gchar *format,
va_list args);
va_list args) G_GNUC_PRINTF (4, 0);
void gimp_statusbar_push_coords (GimpStatusbar *statusbar,
const gchar *context,
const gchar *stock_id,
......@@ -117,12 +117,12 @@ void gimp_statusbar_replace (GimpStatusbar *statusbar
const gchar *context,
const gchar *stock_id,
const gchar *format,
...) G_GNUC_PRINTF(4,5);
...) G_GNUC_PRINTF (4, 5);
void gimp_statusbar_replace_valist (GimpStatusbar *statusbar,
const gchar *context,
const gchar *stock_id,
const gchar *format,
va_list args);
va_list args) G_GNUC_PRINTF (4, 0);
const gchar * gimp_statusbar_peek (GimpStatusbar *statusbar,
const gchar *context);
void gimp_statusbar_pop (GimpStatusbar *statusbar,
......@@ -132,12 +132,12 @@ void gimp_statusbar_push_temp (GimpStatusbar *statusbar
GimpMessageSeverity severity,
const gchar *stock_id,
const gchar *format,
...) G_GNUC_PRINTF(4,5);
...) G_GNUC_PRINTF (4, 5);
void gimp_statusbar_push_temp_valist (GimpStatusbar *statusbar,
GimpMessageSeverity severity,
const gchar *stock_id,
const gchar *format,
va_list args);
va_list args) G_GNUC_PRINTF (4, 0);
void gimp_statusbar_pop_temp (GimpStatusbar *statusbar);
void gimp_statusbar_update_cursor (GimpStatusbar *statusbar,
......
......@@ -57,7 +57,7 @@ void gimp_logv (GimpLogFlags flags,
const gchar *function,
gint line,
const gchar *format,
va_list args);
va_list args) G_GNUC_PRINTF (4, 0);
#ifdef G_HAVE_ISO_VARARGS
......
......@@ -64,6 +64,15 @@ static void gimp_message_box_size_request (GtkWidget *widget,
static void gimp_message_box_size_allocate (GtkWidget *widget,
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)
......
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