Package: psi
Severity: normal
Tags: patch

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

g++ -c -pipe -Wall -W -g -D_REENTRANT  -DHAVE_DNOTIFY -DHAVE_GETHOSTBYNAME_R 
-DHAVE_CONFIG -DXMPP_TEST -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_NO_DEBUG 
-I/usr/share/qt3/mkspecs/default -I. -I../cutestuff/util -I../cutestuff/network 
-I../cutestuff/trayicon -I../cutestuff/idle -I../cutestuff/zip 
-I../cutestuff/dirwatch -I../cutestuff/openpgp -I../iris/libidn 
-I../iris/include -I../iris/xmpp-core -I../iris/xmpp-im -I../iris/jabber 
-I../libpsi/iconset -I../libpsi/psiwidgets -I../libpsi/psipng 
-I/usr/include/qt3 -I/usr/X11R6/include -I.ui/ -I. -Ioptions -I.moc/ -o 
.obj/iconaction.o ../libpsi/psiwidgets/iconaction.cpp
../libpsi/psiwidgets/iconaction.cpp: In member function 'void 
IconAction::Private::popupDestroyed(QObject*)':
../libpsi/psiwidgets/iconaction.cpp:74: error: cast from 'QPopupMenu*' to 'int' 
loses precision
../libpsi/psiwidgets/iconaction.cpp:74: error: cast from 'QObject*' to 'int' 
loses precision
make[2]: *** [.obj/iconaction.o] Error 1
make[2]: Leaving directory `/psi-0.9.3/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/psi-0.9.3/libpsi/psiwidgets/iconaction.cpp 
./libpsi/psiwidgets/iconaction.cpp
--- ../tmp-orig/psi-0.9.3/libpsi/psiwidgets/iconaction.cpp      2004-10-24 
11:42:19.000000000 +0200
+++ ./libpsi/psiwidgets/iconaction.cpp  2005-01-14 09:11:32.000000000 +0100
@@ -71,7 +71,7 @@
 
                        QMap<QPopupMenu *, int>::Iterator it = popups.begin();
                        for ( ; it != popups.end(); ++it ) {
-                               if ( (int)it.key() == (int)obj ) {
+                               if ( (long)it.key() == (long)obj ) {
                                        dirty = true;
                                        popups.remove( it );
                                        break;


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

Reply via email to