Hi,

I was getting core-dumps in both Gtk1 and 2 versions on startup. The back
trace looked odd and I couldn't catch it until I noticed this warning from
gcc:
cc -c -I.. -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
-I/usr/include/libxml2   -g   nodes_gui2.cnodes_gui2.c: In function 
`nodes_gui_update_nodes_display':
nodes_gui2.c:527: warning: function called through a non-compatible type
nodes_gui2.c:527: note: if this code is reached, the program will abort

So I did this:

===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/nodes_gui2.c,v
retrieving revision 1.54
diff -u -b -r1.54 nodes_gui2.c
--- nodes_gui2.c        14 Jun 2004 12:25:36 -0000      1.54
+++ nodes_gui2.c        14 Jun 2004 22:13:20 -0000
@@ -1,4 +1,4 @@
-/*
+/* -*- mode: cc-mode; tab-width:4; -*-
  * $Id: nodes_gui2.c,v 1.54 2004/06/14 12:25:36 cbiere Exp $
  *
  * Copyright (c) 2001-2003, Raphael Manfredi, Richard Eckart
@@ -521,7 +521,7 @@
        gtk_tree_view_set_model(treeview_nodes, NULL);
        }

-       G_LIST_FOREACH(list_nodes, (GFunc) update_row, &now);
+    g_list_foreach(list_nodes, (GFunc) update_row, &now);

        if (do_freeze) {
        /* "Thaw" view */

And it stopped crashing. Reviewing the compile logs I see this error is
all over the place. Has something gone strange with my build setup or have
the warnings just got lost in the forest of output that is a compile these
days?

-- 
Alex
http://www.bennee.com/~alex/




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to