Package: diasce
Severity: normal
Tags: patch

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

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include/gnome-xml 
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/X11R6/include/X11 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H 
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include 
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include   
-I/usr/include/glib-1.2 -I/usr/lib/glib/include    -D_LINUX  -O2  -Wall -c 
gtkextext.c
gtkextext.c: In function 'text_get_text_with_expanded_tabs':
gtkextext.c:840: warning: cast from pointer to integer of different size
gtkextext.c: In function 'text_get_text':
gtkextext.c:869: warning: cast from pointer to integer of different size
gtkextext.c:874: warning: cast from pointer to integer of different size
gtkextext.c: In function 'text_get_text_no_replace':
gtkextext.c:908: warning: cast from pointer to integer of different size
gtkextext.c:913: warning: cast from pointer to integer of different size
gtkextext.c: In function 'line_set_cursor_pos':
gtkextext.c:1020: error: invalid lvalue in assignment

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/diasce-1.0.5/src/gtkextext.c ./src/gtkextext.c
--- ../tmp-orig/diasce-1.0.5/src/gtkextext.c    2002-06-01 22:24:48.000000000 
+0200
+++ ./src/gtkextext.c   2005-03-01 16:55:53.580407993 +0100
@@ -1017,7 +1017,8 @@
   }
   else if(text->draw_numbers && width < (val+text->gutter_width))
   {
-     val = (gfloat)width -= text->gutter_width;
+     width -= text->gutter_width;
+     val = (gfloat)width;
      gtk_adjustment_set_value(text->hadj, val);
   }
 


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

Reply via email to