Package: opie-libs-fb
Severity: normal
Tags: patch
When building 'opie-libs-fb' on amd64 with gcc-4.0,
I get the following error:
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -O2
-Wpointer-arith -Wwrite-strings -Wmissing-prototypes -fPIC -DQT_NO_DEBUG
-I/opie-libs-fb-1.0.1.1snapshot20030829/include -Ibackend
-I/usr/share/qte2/include
-I/opie-libs-fb-1.0.1.1snapshot20030829/mkspecs/qws/linux-generic-g++ -o
global.o global.cpp
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for
Ada/C/ObjC but not for C++
global.cpp: In static member function 'static void Global::invoke(const
QString&)':
global.cpp:593: error: array bound forbidden after parenthesized type-id
global.cpp:593: note: try removing the parentheses around the type-id
make[2]: *** [global.o] Error 1
make[2]: Leaving directory `/opie-libs-fb-1.0.1.1snapshot20030829/library'
With the attached patch 'opie-libs-fb' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN
../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/libopie/pim/oevent.cpp
./libopie/pim/oevent.cpp
--- ../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/libopie/pim/oevent.cpp
2003-06-30 16:34:19.000000000 +0200
+++ ./libopie/pim/oevent.cpp 2005-03-02 17:35:20.795697678 +0100
@@ -29,7 +29,7 @@
}
int OCalendarHelper::dayOfWeek( char day ) {
int dayOfWeek = 1;
- char i = ORecur::MON;
+ int i = ORecur::MON;
while ( !( i & day ) && i <= ORecur::SUN ) {
i <<= 1;
++dayOfWeek;
diff -urN
../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/library/backend/event.cpp
./library/backend/event.cpp
--- ../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/library/backend/event.cpp
2003-05-13 21:43:24.000000000 +0200
+++ ./library/backend/event.cpp 2005-03-02 17:30:35.271809056 +0100
@@ -398,7 +398,7 @@
int Event::dayOfWeek( char day )
{
int dayOfWeek = 1;
- char i = Event::MON;
+ int i = Event::MON;
while ( !( i & day ) && i <= Event::SUN ) {
i <<= 1;
++dayOfWeek;
diff -urN ../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/library/global.cpp
./library/global.cpp
--- ../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/library/global.cpp
2005-03-02 17:37:35.091776057 +0100
+++ ./library/global.cpp 2005-03-02 17:23:01.824332785 +0100
@@ -590,7 +590,7 @@
for ( j = 0; j < list.count(); j++ )
slist.append( list[j].utf8() );
- const char **args = new (const char *)[slist.count() + 1];
+ const char **args = new const char *[slist.count() + 1];
for ( j = 0; j < slist.count(); j++ )
args[j] = slist.at(j);
args[j] = NULL;
diff -urN
../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/library/qpeapplication.cpp
./library/qpeapplication.cpp
--- ../tmp-orig/opie-libs-fb-1.0.1.1snapshot20030829/library/qpeapplication.cpp
2005-03-02 17:37:35.093775671 +0100
+++ ./library/qpeapplication.cpp 2005-03-02 17:24:23.835503116 +0100
@@ -766,7 +766,7 @@
QPEApplication::InputMethodHint QPEApplication::inputMethodHint( QWidget * w )
{
if ( inputMethodDict && w )
- return ( InputMethodHint ) ( int ) inputMethodDict->find( w );
+ return ( InputMethodHint ) ( long ) inputMethodDict->find( w );
return Normal;
}
@@ -1676,7 +1676,7 @@
QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget* w )
{
if ( stylusDict )
- return ( StylusMode ) ( int ) stylusDict->find( w );
+ return ( StylusMode ) ( long ) stylusDict->find( w );
return LeftOnly;
}
@@ -1720,7 +1720,7 @@
{
if ( stylusDict && e->type() >= QEvent::MouseButtonPress && e->type()
<= QEvent::MouseMove ) {
QMouseEvent * me = ( QMouseEvent* ) e;
- StylusMode mode = (StylusMode)(int)stylusDict->find(o);
+ StylusMode mode = (StylusMode)(long)stylusDict->find(o);
switch (mode) {
case RightOnHold:
switch ( me->type() ) {
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]