]> git.sur5r.net Git - glabels/commitdiff
2009-01-07 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Thu, 8 Jan 2009 04:30:15 +0000 (04:30 +0000)
committerJim Evins <evins@snaught.com>
Thu, 8 Jan 2009 04:30:15 +0000 (04:30 +0000)
* 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

glabels2/ChangeLog
glabels2/src/critical-error-handler.c
glabels2/src/ui-commands.c
glabels2/src/view.c
glabels2/src/warning-handler.c

index 0779362e84a83472c5a418f33e8deed392211113..5c8b6029ce6a65c7d8462127bc85d7e860e65829 100644 (file)
@@ -1,3 +1,12 @@
+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.
+       
 2009-01-02  Jim Evins  <evins@snaught.com>
 
        * COPYING.README_FIRST:
index c35c4e17c5b865bdb1fce5af4e88cec803c2eb6b..69a8866514b969973889ff0746a4939303411f49 100644 (file)
@@ -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);
 
index ddeb2dd150c783ff73c6cbb15136f9c088472c81..eb3b342c370b363533ae825921a3822bb51c48c5 100644 (file)
@@ -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);
         }
index eb3bfc673cf26e53e4875aea88f58f09a2e76fa2..f7ad1850a253cf19e2b12a1a225a1d2315b2ef04 100644 (file)
@@ -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");
 
index caa8b1f9b17f6e806f9409fc270d33ceda3e56ee..84e32441a5e3f8f9bac27fd953cac58c7f394249 100644 (file)
@@ -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));