Version: 0.1.3-beta1 (using KDE KDE 3.5.5) Installed from: Compiled From Sources Compiler: g++ (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux) openSuse 10.2 (x86_64) OS: Linux While try to compile the kipi-plugins 0.1.3-beta1 I get the following error messages: sendimages.cpp: In member function 'bool KIPISendimagesPlugin::SendImages::invokeMailAgent()': sendimages.cpp:371: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' sendimages.cpp:372: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' Possible solution: - qDebug("number of elements in filelist %d",filelist.size()); - qDebug("number of elements in m_filelist %d", m_filesSendList.size()); + qDebug("number of elements in filelist %d", (int) filelist.size()); + qDebug("number of elements in m_filelist %d", (int) m_filesSendList.size()); It sems that openSuse is a bit sesitive against this since others seems to compile this without any problems.
SVN commit 626934 by hoechstetter: BUG: 139074; Changed the qDebug messages to an int-cast M +6 -6 sendimages.cpp --- trunk/extragear/libs/kipi-plugins/sendimages/sendimages.cpp #626933:626934 @@ -380,14 +380,14 @@ kurllistdeepcopy(m_filesSendList_copy,m_filesSendList); - qDebug("invokeMailagent1: Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",m_filesSendList.size(),m_filesSendList_copy.size()); + qDebug("invokeMailagent1: Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); while (!((filelist=divideEmails()).empty())) { - qDebug("invokeMailagent2: Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",m_filesSendList.size(),m_filesSendList_copy.size()); - qDebug("number of elements in filelist %d",filelist.size()); - qDebug("number of elements in m_filelist %d", m_filesSendList.size()); + qDebug("invokeMailagent2: Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",(int) m_filesSendList.size(),(int)m_filesSendList_copy.size()); + qDebug("number of elements in filelist %d",(int)filelist.size()); + qDebug("number of elements in m_filelist %d", (int)m_filesSendList.size()); if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Default" ) { KApplication::kApplication()->invokeMailer( @@ -773,7 +773,7 @@ m_mailAgentProc->disconnect(SIGNAL(processExited(KProcess *)), this, SLOT(slotMozillaExited(KProcess*))); - qDebug("Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",m_filesSendList.size(),m_filesSendList_copy.size()); + qDebug("Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); if ( m_mozillaStdErr.find("No running window found") != -1 ) // No remote Mozilla | Netscape | { // Thunderbird env. loaded ! m_mailAgentProc2 = new KProcess; // Init a new env. @@ -811,7 +811,7 @@ m_mozillaTimer->disconnect(SIGNAL(timeout()), this, SLOT(slotMozillaTimeout())); - qDebug("slotMozillaTimeout: Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",m_filesSendList.size(),m_filesSendList_copy.size()); + qDebug("slotMozillaTimeout: Anzahl der Elemente in m_filesSendList=%d, und in der m_filesSendList_copy=%d)",(int)m_filesSendList.size(),(int)m_filesSendList_copy.size()); kurllistdeepcopy(m_filesSendList,m_filesSendList_copy); invokeMailAgent();