[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#287420: libjsw: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment



Package: libjsw
Severity: normal
Tags: patch

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

guiutils.c:2162: error: invalid lvalue in assignment
guiutils.c: In function 'GUIBannerCreate':
guiutils.c:3041: warning: cast to pointer from integer of different size
guiutils.c: In function 'GUIComboCreate':
guiutils.c:3267: warning: cast to pointer from integer of different size
guiutils.c: In function 'GUIComboAddItem':
guiutils.c:3382: warning: cast from pointer to integer of different size
guiutils.c: In function 'GUIComboSetList':
guiutils.c:3556: warning: cast from pointer to integer of different size
guiutils.c:3607: warning: cast from pointer to integer of different size
guiutils.c: In function 'GUIPullOutCreateH':
guiutils.c:4112: warning: cast to pointer from integer of different size
guiutils.c:4113: warning: cast to pointer from integer of different size
guiutils.c: In function 'GUIPullOutPullOut':
guiutils.c:4255: warning: cast from pointer to integer of different size
guiutils.c: In function 'GUIPullOutPushIn':
guiutils.c:4301: warning: cast from pointer to integer of different size
make[1]: *** [guiutils.o] Error 1
make[1]: Leaving directory `/libjsw-1.5.0/jscalibrator'
make: *** [build-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/libjsw-1.5.0/jscalibrator/guiutils.c ./jscalibrator/guiutils.c
--- ../tmp-orig/libjsw-1.5.0/jscalibrator/guiutils.c	2001-11-06 00:55:11.000000000 +0100
+++ ./jscalibrator/guiutils.c	2004-12-27 16:56:46.035960624 +0100
@@ -2159,7 +2159,7 @@
         {
 	    GtkWidget *w;
 
-            gui_tooltips = (GtkTooltips *)w = gtk_tooltips_new();
+            gui_tooltips = w = gtk_tooltips_new();
 	    if(w != NULL)
             {
                 gtk_tooltips_enable(GTK_TOOLTIPS(w));



Reply to: