diff options
author | Florian Becker <fb@vxapps.com> | 2021-10-01 02:47:08 +0800 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2021-10-01 02:47:08 +0800 |
commit | 84237a0161e7867a1313d07cda33aeb99818ddf1 (patch) | |
tree | fb8c0eeb7031981d7d5720e6468783eb9f285971 | |
parent | a31e2451e763f918ec900e6dfb0e63cf505f8cda (diff) | |
download | cppunit-84237a0161e7867a1313d07cda33aeb99818ddf1.tar.gz |
avoid a few annoying compiler warnings
-rw-r--r-- | include/cppunit/TestListener.h | 8 | ||||
-rw-r--r-- | src/cppunit/DynamicLibraryManager.cpp | 1 | ||||
-rw-r--r-- | src/cppunit/XmlElement.cpp | 1 |
3 files changed, 4 insertions, 6 deletions
diff --git a/include/cppunit/TestListener.h b/include/cppunit/TestListener.h index 330262d..fce6c37 100644 --- a/include/cppunit/TestListener.h +++ b/include/cppunit/TestListener.h @@ -125,8 +125,8 @@ public: * \param test Test that is going to be run. * \param eventManager Event manager used for the test run. */ - virtual void startTestRun( Test * /*test*/, - TestResult * /*eventManager*/ ) {} + virtual void startTestRun( Test *test, + TestResult *eventManager ) { ( void )test; ( void )eventManager; } /*! \brief Called by a TestRunner after running the test. * @@ -136,8 +136,8 @@ public: * \param test Test that was run. * \param eventManager Event manager used for the test run. */ - virtual void endTestRun( Test * /*test*/, - TestResult * /*eventManager*/ ) {} + virtual void endTestRun( Test * test, + TestResult *eventManager ) { ( void )test; ( void )eventManager; } }; diff --git a/src/cppunit/DynamicLibraryManager.cpp b/src/cppunit/DynamicLibraryManager.cpp index 9471870..56bd294 100644 --- a/src/cppunit/DynamicLibraryManager.cpp +++ b/src/cppunit/DynamicLibraryManager.cpp @@ -36,7 +36,6 @@ DynamicLibraryManager::findSymbol( const std::string &symbol ) throw DynamicLibraryManagerException( m_libraryName, symbol, DynamicLibraryManagerException::symbolNotFound ); - return nullptr; // keep compiler happy } diff --git a/src/cppunit/XmlElement.cpp b/src/cppunit/XmlElement.cpp index 691cde1..585c3da 100644 --- a/src/cppunit/XmlElement.cpp +++ b/src/cppunit/XmlElement.cpp @@ -124,7 +124,6 @@ XmlElement::elementFor( const std::string &name ) const } throw std::invalid_argument( "XmlElement::elementFor(), not matching child element found" ); - return nullptr; // make some compilers happy. } |