Package: scite
Severity: normal
Tags: patch
When building 'scite' on amd64 with gcc-4.0,
I get the following error:
g++ `pkg-config --cflags gtk+-2.0` -DNDEBUG -Os -W -Wall -DGTK -DSCI_LEXER
-DPIXMAP_PATH=\"/usr/share/pixmaps\" -DSYSCONF_PATH=\"/usr/share/scite\" -I
../../scintilla/include -I ../src -DNO_LUA -c SciTEGTK.cxx -o SciTEGTK.o
SciTEGTK.cxx: In function 'int xsystem(const char*, const char*)':
SciTEGTK.cxx:1693: warning: missing sentinel in function call
SciTEGTK.cxx: In member function 'virtual void SciTEGTK::Execute()':
SciTEGTK.cxx:1732: warning: missing sentinel in function call
SciTEGTK.cxx: In static member function 'static void
SciTEGTK::ButtonSignal(GtkWidget*, void*)':
SciTEGTK.cxx:2205: error: cast from 'void*' to 'guint' loses precision
make[1]: *** [SciTEGTK.o] Error 1
make[1]: Leaving directory `/scite-1.62/scite/gtk'
make: *** [build-stamp] Error 2
With the attached patch 'scite' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/scite-1.62/scite/gtk/SciTEGTK.cxx ./scite/gtk/SciTEGTK.cxx
--- ../tmp-orig/scite-1.62/scite/gtk/SciTEGTK.cxx 2004-10-31
07:12:53.000000000 +0000
+++ ./scite/gtk/SciTEGTK.cxx 2005-02-23 14:33:20.000000000 +0000
@@ -2202,7 +2202,7 @@
}
void SciTEGTK::ButtonSignal(GtkWidget *, gpointer data) {
- instance->Command((guint)data);
+ instance->Command((unsigned long)data);
}
void SciTEGTK::MenuSignal(SciTEGTK *scitew, guint action, GtkWidget *) {
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]