[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport
From:       Jesse Lee Zamora <xtremek2008 () aim ! com>
Date:       2008-11-25 2:50:21
Message-ID: 1227581421.195525.7092.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 888664 by jzamora:

Fixes unused variable warnings for cleaner compilation.



 M  +2 -0      akonadi/libs/CMakeLists.txt  
 M  +4 -0      phonon/phonon/experimental/videodataoutput.cpp  
 M  +2 -0      phonon/xine/audiodataoutput.cpp  
 M  +1 -1      phonon/xine/bytestream.cpp  
 M  +8 -0      phonon/xine/mediaobject.cpp  
 M  +2 -0      soprano/index/CMakeLists.txt  
 M  +1 -0      soprano/server/sparql/sparqlmodel.cpp  
 M  +4 -4      soprano/test/cluceneindextest.cpp  
 M  +1 -1      soprano/test/multithreadingtest.cpp  
 M  +1 -1      strigi/src/xmlindexer/cgixmlindexer.cpp  


--- trunk/kdesupport/akonadi/libs/CMakeLists.txt #888663:888664
@@ -1,5 +1,7 @@
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_CAST_FROM_ASCII \
-DQT_NO_CAST_TO_ASCII ${_ENABLE_EXCEPTIONS}" )  
+cmake_policy(SET CMP0003 NEW)
+
 include_directories(
    ${CMAKE_BINARY_DIR}/akonadi
    ${QT_QTDBUS_INCLUDE_DIR}
--- trunk/kdesupport/phonon/phonon/experimental/videodataoutput.cpp #888663:888664
@@ -83,12 +83,16 @@
 
 VideoFrame VideoDataOutput::frameForTime(qint64 timestamp)
 {
+    Q_UNUSED(timestamp);
+
     //return d->m_backendObject->frameForTime(timestamp);
     return VideoFrame();
 }
 
 void VideoDataOutput::setRunning(bool running)
 {
+    Q_UNUSED(running);
+
     //return d->m_backendObject->setRunning(running);
 }
 
--- trunk/kdesupport/phonon/xine/audiodataoutput.cpp #888663:888664
@@ -43,6 +43,8 @@
 
 void AudioDataOutputXT::rewireTo(SourceNodeXT *source)
 {
+    Q_UNUSED(source);
+
     //xine_post_wire_audio_port(source->outputPort(), m_audioPort);
 }
 
--- trunk/kdesupport/phonon/xine/bytestream.cpp #888663:888664
@@ -55,7 +55,7 @@
         return 0;
     }
     ByteStream *ret = 0;
-    Q_ASSERT(mrl.length() >= 13 + sizeof(void *) && mrl.length() <= 13 + 2 * \
sizeof(void *)); +    Q_ASSERT(mrl.length() >= 13 + (int)sizeof(void *) && \
                mrl.length() <= 13 + 2 * (int)sizeof(void *));
     const unsigned char *encoded = reinterpret_cast<const unsigned char \
*>(mrl.constData() + 13);  unsigned char *addrHack = reinterpret_cast<unsigned char \
*>(&ret);  for (unsigned int i = 0; i < sizeof(void *); ++i, ++encoded) {
--- trunk/kdesupport/phonon/xine/mediaobject.cpp #888663:888664
@@ -433,6 +433,10 @@
 bool MediaObject::hasInterface(Interface interface) const
 {
     switch (interface) {
+    case AddonInterface::NavigationInterface:
+        break;
+    case AddonInterface::AngleInterface:
+        break;
     case AddonInterface::TitleInterface:
         if (m_titles.size() > 1) {
             return true;
@@ -478,6 +482,10 @@
     debug() << Q_FUNC_INFO << interface << ", " << command;
 
     switch (interface) {
+    case AddonInterface::NavigationInterface:
+        break;
+    case AddonInterface::AngleInterface:
+        break;
     case AddonInterface::ChapterInterface:
         switch (static_cast<AddonInterface::ChapterCommand>(command)) {
         case AddonInterface::availableChapters:
--- trunk/kdesupport/soprano/index/CMakeLists.txt #888663:888664
@@ -1,3 +1,5 @@
+cmake_policy(SET CMP0003 NEW)
+
 project(sopranoindex)
 
 include_directories(
--- trunk/kdesupport/soprano/server/sparql/sparqlmodel.cpp #888663:888664
@@ -386,6 +386,7 @@
 
 Soprano::Error::ErrorCode Soprano::Client::SparqlModel::removeAllStatements( const \
Statement& statement )  {
+    Q_UNUSED(statement);
     setError( "No removeAllStatements support.", Error::ErrorNotSupported );
     return Error::ErrorNotSupported;
 }
--- trunk/kdesupport/soprano/test/cluceneindextest.cpp #888663:888664
@@ -39,16 +39,16 @@
 using namespace Soprano::Index;
 
 
-static QUrl createRandomUri()
+/*static QUrl createRandomUri()
 {
     // FIXME: check if the uri already exists
     QString uid = QUuid::createUuid().toString();
     uid = uid.mid( 1, uid.length()-2 );
     return QUrl( "http://soprano.org/test#" + uid );
-}
+}*/
 
 
-static QList<Statement> createTestData( const Statement& s, int num )
+/*static QList<Statement> createTestData( const Statement& s, int num )
 {
     QList<Statement> sl;
     for( int i = 0; i < num; ++i ) {
@@ -58,7 +58,7 @@
                               s.context() ) );
     }
     return sl;
-}
+}*/
 
 
 void IndexTest::init()
--- trunk/kdesupport/soprano/test/multithreadingtest.cpp #888663:888664
@@ -286,7 +286,7 @@
     // now wait little to give the threads some time to mess things up (in case we \
have a bug)  QTime t;
     t.start();
-    while ( t.elapsed() < 200 );
+    while ( t.elapsed() < 200 ) {};
 
     // now check the iterators, it should contain exactly those contexts that were \
in the  // model when we called listContexts
--- trunk/kdesupport/strigi/src/xmlindexer/cgixmlindexer.cpp #888663:888664
@@ -144,7 +144,7 @@
     AnalyzerConfiguration ac;
     StreamAnalyzer sa(ac);
     sa.setIndexWriter(*manager.indexWriter());
-    while (parseFile(sa, manager, &stream, delim));
+    while (parseFile(sa, manager, &stream, delim)) {};
     cout << "</" << mapping.map("metadata") << ">\n" << flush;
 
     return 0;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic