Package: tea
Version: 9.0-1
Severity: normal
Tags: patch

When building 'tea' on amd64/unstable with gcc-4.0,
I get the following error:

x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-DPACKAGE_DATA_DIR=\""/usr/share"\"       
-DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\"    -DXTHREADS 
-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      -Wall -g -O2 -w -s 
-pipe -c tea_about.c
tea_about.c:44: error: static declaration of 'cb_on_bt_close' follows 
non-static declaration
tea_gtk_utils.h:14: error: previous declaration of 'cb_on_bt_close' was here
make[3]: *** [tea_about.o] Error 1
make[3]: Leaving directory `/tea-9.0/src'

With the attached patch 'tea' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/tea-9.0/src/tea_about.c ./src/tea_about.c
--- ../tmp-orig/tea-9.0/src/tea_about.c 2005-04-22 14:53:08.000000000 +0200
+++ ./src/tea_about.c   2005-06-19 19:12:56.000000000 +0200
@@ -40,7 +40,7 @@
 }
 
 
-static void cb_on_bt_close (GtkObject *object, GtkWidget *w) 
+static void about_cb_on_bt_close (GtkObject *object, GtkWidget *w) 
 {
   window_destroy (w);
 }
@@ -166,7 +166,7 @@
   
   GTK_WIDGET_SET_FLAGS (bt_close, GTK_CAN_DEFAULT);
 
-  g_signal_connect (bt_close, "clicked", G_CALLBACK (cb_on_bt_close), 
wnd_about);
+  g_signal_connect (bt_close, "clicked", G_CALLBACK (about_cb_on_bt_close), 
wnd_about);
 
   gtk_widget_grab_focus (bt_close);
   gtk_widget_grab_default (bt_close);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to