Am Sonntag, 27. November 2005 18:28 schrieb Peter McClure: > I get the following errors compiling synce-kde (from > CVS) with GCC v4.0 > ../../raki/threadevent.h:48: error: default arguments > are only permitted for function parameters
I attached a fix. rgds -- e-Trolley Sayegh & John, Nabil Sayegh Tel.: 0700 etrolley /// 0700 38765539 Fax.: +49 69 8299381-8 PGP : www.e-trolley.de
diff -uriwbB synce-kde.orig/raki/rakiworkerthread.h synce-kde/raki/rakiworkerthread.h --- synce-kde.orig/raki/rakiworkerthread.h 2004-08-31 02:50:13.000000000 +0200 +++ synce-kde/raki/rakiworkerthread.h 2005-12-10 15:24:14.000000000 +0100 @@ -40,8 +40,8 @@ #define startWorkerThread(a, b, c) \ RakiWorkerThread::rakiWorkerThread->start(a, \ - (void (WorkerThreadInterface::*)(QThread *thread = NULL, \ - void *data = NULL)) b, (void *) c) + (void (WorkerThreadInterface::*)(QThread *thread, \ + void *data)) b, (void *) c) class RakiWorkerThread : public QThread { @@ -62,8 +62,8 @@ private: WorkerThreadInterface *wti; - void (WorkerThreadInterface::*userRun)(QThread *thread = NULL, - void *data = NULL); + void (WorkerThreadInterface::*userRun)(QThread *thread, + void *data); void *data; QWaitCondition waitCondition; QMutex threadMutex; diff -uriwbB synce-kde.orig/raki/syncthread.h synce-kde/raki/syncthread.h --- synce-kde.orig/raki/syncthread.h 2003-10-12 15:49:13.000000000 +0200 +++ synce-kde/raki/syncthread.h 2005-12-10 15:18:56.000000000 +0100 @@ -39,7 +39,7 @@ #define postSyncThreadEvent(a, b) \ syncThread->postEvent((void *(WorkerThreadInterface::*) \ - (void *data = NULL)) &a, (void *) b, WorkerThreadInterface::noBlock); + (void *data)) &a, (void *) b, WorkerThreadInterface::noBlock); class SyncThread : public WorkerThreadInterface { diff -uriwbB synce-kde.orig/raki/threadevent.h synce-kde/raki/threadevent.h --- synce-kde.orig/raki/threadevent.h 2004-08-31 02:50:14.000000000 +0200 +++ synce-kde/raki/threadevent.h 2005-12-10 15:20:20.000000000 +0100 @@ -45,7 +45,7 @@ ThreadEvent(WorkerThreadInterface *wti, void *(WorkerThreadInterface::*userEventMethode)(void *data), void *data); - void *(WorkerThreadInterface::*userEventMethode)(void *data = 0); + void *(WorkerThreadInterface::*userEventMethode)(void *data); WorkerThreadInterface *wti; void *threadData; }; diff -uriwbB synce-kde.orig/raki/workerthreadinterface.h synce-kde/raki/workerthreadinterface.h --- synce-kde.orig/raki/workerthreadinterface.h 2004-08-31 02:50:14.000000000 +0200 +++ synce-kde/raki/workerthreadinterface.h 2005-12-10 15:22:49.000000000 +0100 @@ -38,7 +38,7 @@ */ #define postThreadEvent(a, b, c) \ - this->postEvent((void *(WorkerThreadInterface::*)(void *data = NULL)) a, \ + this->postEvent((void *(WorkerThreadInterface::*)(void *data)) a, \ (void *) b, c) class WorkerThreadInterface