Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Tue, 24 Jun 2014 16:30:54 UTC Commit: cc2f1879a83aeb95bd9aa6b0d6362b32016c0432 https://github.com/geany/geany/commit/cc2f1879a83aeb95bd9aa6b0d6362b32016c04...
Log Message: ----------- Add printf attribute to document_show_message() for better safety
Add G_GNUC_PRINTF attribute to document_show_message() so some compilers can check the format arguments match the format string.
Modified Paths: -------------- src/document.c
Modified: src/document.c 6 lines changed, 6 insertions(+), 0 deletions(-) =================================================================== @@ -112,6 +112,12 @@ typedef struct static void document_undo_clear(GeanyDocument *doc); static void document_redo_add(GeanyDocument *doc, guint type, gpointer data); static gboolean remove_page(guint page_num); +static GtkWidget* document_show_message(GeanyDocument *doc, GtkMessageType msgtype, + void (*response_cb)(GtkWidget *info_bar, gint response_id, GeanyDocument *doc), + const gchar *btn_1, GtkResponseType response_1, + const gchar *btn_2, GtkResponseType response_2, + const gchar *btn_3, GtkResponseType response_3, + const gchar *extra_text, const gchar *format, ...) G_GNUC_PRINTF(11, 12);
/**
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).