summaryrefslogtreecommitdiff
path: root/examples/cppunittest/TestAssertTest.cpp
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-16 13:17:07 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-16 13:17:07 +0200
commit66f607ed47ca9187e51aa4b2402e0e30ba0db211 (patch)
treece336ece238cbc6674b4294d36df90d770a63d5f /examples/cppunittest/TestAssertTest.cpp
parent6ad5f9b35c32d696424f241530d3c0595c608c8a (diff)
downloadcppunit-66f607ed47ca9187e51aa4b2402e0e30ba0db211.tar.gz
a bit warning cleaning in the tests
-Werror -Wall -Wextra now works in make and in make check
Diffstat (limited to 'examples/cppunittest/TestAssertTest.cpp')
-rw-r--r--examples/cppunittest/TestAssertTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/cppunittest/TestAssertTest.cpp b/examples/cppunittest/TestAssertTest.cpp
index 3960b8e..1a7a5de 100644
--- a/examples/cppunittest/TestAssertTest.cpp
+++ b/examples/cppunittest/TestAssertTest.cpp
@@ -49,6 +49,7 @@ TestAssertTest::testAssertThrow()
{
int x;
CPPUNIT_ASSERT_THROW( x = 1234, std::string );
+ (void) x;
}
catch ( CPPUNIT_NS::Exception & )
{
@@ -64,6 +65,7 @@ TestAssertTest::testAssertNoThrow()
{
int x;
CPPUNIT_ASSERT_NO_THROW( x = 1234 );
+ (void)x;
try
{
@@ -86,6 +88,7 @@ TestAssertTest::testAssertAssertionFail()
{
int x;
CPPUNIT_ASSERT_ASSERTION_FAIL( x = 1234 );
+ (void)x;
}
catch ( CPPUNIT_NS::Exception & )
{
@@ -101,6 +104,7 @@ TestAssertTest::testAssertAssertionPass()
{
int x;
CPPUNIT_ASSERT_ASSERTION_PASS( x = 1234 );
+ (void)x;
try
{