]> git.0d.be Git - empathy.git/commitdiff
Add -Wformat and and fix some compile warnings with gcc 4.3. Fixes bug #537129 (Cosim...
authorXavier Claessens <xclaesse@src.gnome.org>
Sat, 7 Jun 2008 17:23:13 +0000 (17:23 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sat, 7 Jun 2008 17:23:13 +0000 (17:23 +0000)
svn path=/trunk/; revision=1152

libempathy-gtk/empathy-ui-utils.c
m4/acinclude.m4
src/empathy-status-icon.c

index bc4d7597b58965c70693a345e1806dd9b52c75a0..6b02b1a929a6241f813a303f482c65012d77e796 100644 (file)
@@ -1325,7 +1325,7 @@ empathy_url_show (const char *url)
                                                 GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, 
                                                 _("Unable to open URI"));
                gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-                                                         error->message);
+                                                         "%s", error->message);
 
                g_signal_connect (dialog, "response",
                                  G_CALLBACK (gtk_widget_destroy),
index 3120d8620de6d78adec1db10cc0e5a5366794ca6..18cf7c86813f8dd141d89293d10fd61513729bf2 100644 (file)
@@ -29,9 +29,9 @@ AC_DEFUN([IDT_COMPILE_WARNINGS],[
        warning_flags="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations"
        ;;
     maximum|error)
-       warning_flags="-Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
+       warning_flags="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wnested-externs -Wpointer-arith"
        CFLAGS="$warning_flags $CFLAGS"
-       for option in -Wno-sign-compare -Wno-pointer-sign; do
+       for option in -Wno-sign-compare -Wno-pointer-sign -Wformat; do
                SAVE_CFLAGS="$CFLAGS"
                CFLAGS="$CFLAGS $option"
                AC_MSG_CHECKING([whether gcc understands $option])
index 15695d8fbf0acff70a254c9ae4efc563b95695ab..3c2e7a679202627c0327c180ba13760a0899ce91 100644 (file)
@@ -554,7 +554,8 @@ status_icon_tube_process (EmpathyStatusIcon *icon,
 
                dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
                                                 GTK_MESSAGE_ERROR,
-                                                GTK_BUTTONS_OK, str);
+                                                GTK_BUTTONS_OK,
+                                                "%s", str);
                gtk_window_set_title (GTK_WINDOW (dialog),
                                      _("Invitation Error"));
                g_free (str);