diff options
Diffstat (limited to 'examples/cppunittest/TestAssertTest.cpp')
-rw-r--r-- | examples/cppunittest/TestAssertTest.cpp | 4 |
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 { |