From 66f607ed47ca9187e51aa4b2402e0e30ba0db211 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 16 Jun 2012 13:17:07 +0200 Subject: a bit warning cleaning in the tests -Werror -Wall -Wextra now works in make and in make check --- examples/cppunittest/TestAssertTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/cppunittest/TestAssertTest.cpp') 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 { -- cgit v1.2.1