Christian Biere wrote:
> Hey guys,
>
> what's up with your memory? Using a sub-notebook with Glade for GTK+ 2.x
> made GTKG uncompileable. 10 min. and more for interface-glade2.c...
> GCC chewing over 256 megs... anyone? *any* one?
>

I just pulled CVS and compiled GTK2, can't say any of that sounds
familiar?  It took less than 10 minutes to compile all of GtkG on a P3?

I did however notice some compiler warnings. It isn't critical but I have attached a small patch which should remedy it.

gcc -c -I.. -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -O0 -g3 gnet_stats_gui2.c
gnet_stats_gui2.c: In function `gnet_stats_update_flowc':
gnet_stats_gui2.c:384: warning: assignment from incompatible pointer type
gnet_stats_gui2.c:385: warning: assignment from incompatible pointer type
gnet_stats_gui2.c:387: warning: assignment from incompatible pointer type
gnet_stats_gui2.c:388: warning: assignment from incompatible pointer type
gnet_stats_gui2.c: In function `gnet_stats_update_recv':
gnet_stats_gui2.c:404: warning: assignment from incompatible pointer type
gnet_stats_gui2.c:405: warning: assignment from incompatible pointer type
gnet_stats_gui2.c:407: warning: assignment from incompatible pointer type
gnet_stats_gui2.c:408: warning: assignment from incompatible pointer type



Cheers, Russ
Index: src/gnet_stats_gui2.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/gnet_stats_gui2.c,v
retrieving revision 1.37
diff -u -r1.37 gnet_stats_gui2.c
--- src/gnet_stats_gui2.c       21 Feb 2004 14:36:42 -0000      1.37
+++ src/gnet_stats_gui2.c       3 Mar 2004 00:49:37 -0000
@@ -313,8 +313,8 @@
        const gnet_stats_t *stats,
        GtkTreeView *treeview,
        gint columns,
-       const guint32 (*byte_counters)[MSG_TYPE_COUNT],
-       const guint32 (*pkg_counters)[MSG_TYPE_COUNT])
+       const guint64 (*byte_counters)[MSG_TYPE_COUNT],
+       const guint64 (*pkg_counters)[MSG_TYPE_COUNT])
 {
     GtkListStore *store;
     GtkTreeIter iter;
@@ -374,8 +374,8 @@
 
 static void gnet_stats_update_flowc(const gnet_stats_t *stats)
 {
-       const guint32 (*byte_counters)[MSG_TYPE_COUNT];
-       const guint32 (*pkg_counters)[MSG_TYPE_COUNT];
+       const guint64 (*byte_counters)[MSG_TYPE_COUNT];
+       const guint64 (*pkg_counters)[MSG_TYPE_COUNT];
        GtkTreeView *treeview = treeview_gnet_stats_flowc;
        gboolean hops = FALSE;
 
@@ -394,8 +394,8 @@
 
 static void gnet_stats_update_recv(const gnet_stats_t *stats)
 {
-       const guint32 (*byte_counters)[MSG_TYPE_COUNT];
-       const guint32 (*pkg_counters)[MSG_TYPE_COUNT];
+       const guint64 (*byte_counters)[MSG_TYPE_COUNT];
+       const guint64 (*pkg_counters)[MSG_TYPE_COUNT];
        GtkTreeView *treeview = treeview_gnet_stats_recv;
        gboolean hops = FALSE;
        

Reply via email to