diff options
author | Jim Evins <evins@snaught.com> | 2009-01-08 04:30:15 +0000 |
---|---|---|
committer | Jim Evins <evins@snaught.com> | 2009-01-08 04:30:15 +0000 |
commit | 785f385b0a34cb02732bbd48d483988c75a0c651 (patch) | |
tree | 7a1d1a6a2e41596846e178b5696a95bfd43c614d /glabels2/src | |
parent | dc8b4a0f9fe720d384aaaf4811a8a990c3a7bbda (diff) |
2009-01-07 Jim Evins <evins@snaught.com>
* src/critical-error-handler.c: (critical_error_handler):
* src/ui-commands.c: (gl_ui_cmd_help_contents):
* src/warning-handler.c: (warning_handler):
* src/view.c: (selection_received_cb):
Compile without warning with additional CFLAGS of
-O1 -Wall -Wformat=2.
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@823 f5e0f49d-192f-0410-a22d-a8d8700d0965
Diffstat (limited to 'glabels2/src')
-rw-r--r-- | glabels2/src/critical-error-handler.c | 2 | ||||
-rw-r--r-- | glabels2/src/ui-commands.c | 2 | ||||
-rw-r--r-- | glabels2/src/view.c | 1 | ||||
-rw-r--r-- | glabels2/src/warning-handler.c | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/glabels2/src/critical-error-handler.c b/glabels2/src/critical-error-handler.c index c35c4e1..69a8866 100644 --- a/glabels2/src/critical-error-handler.c +++ b/glabels2/src/critical-error-handler.c @@ -72,7 +72,7 @@ critical_error_handler (const gchar *log_domain, GTK_BUTTONS_NONE, _("gLabels Fatal Error!")); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), - message); + "%s", message); gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_QUIT, 0); diff --git a/glabels2/src/ui-commands.c b/glabels2/src/ui-commands.c index ddeb2dd..eb3b342 100644 --- a/glabels2/src/ui-commands.c +++ b/glabels2/src/ui-commands.c @@ -1058,7 +1058,7 @@ gl_ui_cmd_help_contents (GtkAction *action, if (error != NULL) { - g_message (error->message); + g_message ("%s", error->message); g_error_free (error); } diff --git a/glabels2/src/view.c b/glabels2/src/view.c index eb3bfc6..f7ad185 100644 --- a/glabels2/src/view.c +++ b/glabels2/src/view.c @@ -2768,7 +2768,6 @@ selection_received_cb (GtkWidget *widget, glXMLLabelStatus status; GList *p, *p_next; glLabelObject *object, *newobject; - glViewObject *view_object; gl_debug (DEBUG_VIEW, "START"); diff --git a/glabels2/src/warning-handler.c b/glabels2/src/warning-handler.c index caa8b1f..84e3244 100644 --- a/glabels2/src/warning-handler.c +++ b/glabels2/src/warning-handler.c @@ -72,7 +72,7 @@ warning_handler (const gchar *log_domain, GTK_BUTTONS_CLOSE, _("gLabels Error!")); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), - message); + "%s", message); gtk_dialog_run (GTK_DIALOG (dialog)); |