Silent two compilation warnings.
authorLaurent Monin <geeqie@norz.org>
Sat, 24 Jan 2009 07:41:23 +0000 (07:41 +0000)
committerLaurent Monin <geeqie@norz.org>
Sat, 24 Jan 2009 07:41:23 +0000 (07:41 +0000)
src/layout.c
src/ui_fileops.c

index dc86a42..c572fa1 100644 (file)
@@ -531,7 +531,6 @@ static GtkWidget *layout_color_button(LayoutWindow *lw)
 
 static void layout_write_button_press_cb(GtkWidget *widget, gpointer data)
 {
-       LayoutWindow *lw = data;
        metadata_write_queue_confirm(NULL, NULL);
 }
 
index 1467989..d510845 100644 (file)
@@ -659,9 +659,8 @@ void string_list_free(GList *list)
 GList *string_list_copy(const GList *list)
 {
        GList *new_list = NULL;
-       GList *work;
+       GList *work = (GList *) list;
 
-       work = list;
        while (work)
                {
                gchar *path;