From e10c4e12f7948cd6325812cbb089537231b1144e Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Wed, 4 Jul 2007 14:54:23 -0500 Subject: examples/, tests/: fix a bunch of minor compile errors when compiling with -Werror --- tests/test-context.cc | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'tests/test-context.cc') diff --git a/tests/test-context.cc b/tests/test-context.cc index bd0ce2a..2cbd246 100644 --- a/tests/test-context.cc +++ b/tests/test-context.cc @@ -231,26 +231,29 @@ test_current_point () } test_suite* -init_unit_test_suite( int argc, char* argv[] ) +init_unit_test_suite(int argc, char* argv[]) { - test_suite* test= BOOST_TEST_SUITE( "Cairo::Context Tests" ); + // compile even with -Werror + if (argc && argv) {} - test->add (BOOST_TEST_CASE (&test_dashes)); - test->add (BOOST_TEST_CASE (&test_save_restore)); - test->add (BOOST_TEST_CASE (&test_operator)); - test->add (BOOST_TEST_CASE (&test_source)); - test->add (BOOST_TEST_CASE (&test_tolerance)); - test->add (BOOST_TEST_CASE (&test_antialias)); - test->add (BOOST_TEST_CASE (&test_fill_rule)); - test->add (BOOST_TEST_CASE (&test_line_width)); - test->add (BOOST_TEST_CASE (&test_line_cap)); - test->add (BOOST_TEST_CASE (&test_line_join)); - test->add (BOOST_TEST_CASE (&test_miter_limit)); - //test->add (BOOST_TEST_CASE (&test_matrix)); - //test->add (BOOST_TEST_CASE (&test_user_device)); - test->add (BOOST_TEST_CASE (&test_draw)); - test->add (BOOST_TEST_CASE (&test_clip)); - test->add (BOOST_TEST_CASE (&test_current_point)); + test_suite* test= BOOST_TEST_SUITE( "Cairo::Context Tests" ); - return test; + test->add (BOOST_TEST_CASE (&test_dashes)); + test->add (BOOST_TEST_CASE (&test_save_restore)); + test->add (BOOST_TEST_CASE (&test_operator)); + test->add (BOOST_TEST_CASE (&test_source)); + test->add (BOOST_TEST_CASE (&test_tolerance)); + test->add (BOOST_TEST_CASE (&test_antialias)); + test->add (BOOST_TEST_CASE (&test_fill_rule)); + test->add (BOOST_TEST_CASE (&test_line_width)); + test->add (BOOST_TEST_CASE (&test_line_cap)); + test->add (BOOST_TEST_CASE (&test_line_join)); + test->add (BOOST_TEST_CASE (&test_miter_limit)); + //test->add (BOOST_TEST_CASE (&test_matrix)); + //test->add (BOOST_TEST_CASE (&test_user_device)); + test->add (BOOST_TEST_CASE (&test_draw)); + test->add (BOOST_TEST_CASE (&test_clip)); + test->add (BOOST_TEST_CASE (&test_current_point)); + + return test; } -- cgit v1.2.3