From 871082dc018815261b6ec75a8e4933505389ffae Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Apr 2014 08:29:49 +0200 Subject: Support for autotools and VC++ 9, 10, 11 build systems --- tests/serializer/driver.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/serializer/driver.cxx') diff --git a/tests/serializer/driver.cxx b/tests/serializer/driver.cxx index 8d8fad1..b112d1b 100644 --- a/tests/serializer/driver.cxx +++ b/tests/serializer/driver.cxx @@ -2,6 +2,10 @@ // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file +#ifdef NDEBUG +# error tests require enabled assert(); un-define the NDEBUG macro +#endif + #include #include #include @@ -25,7 +29,7 @@ main () s.attribute ("foo", "bar"); assert (false); } - catch (const xml::exception& e) + catch (const xml::exception&) { // cerr << e.what () << endl; } @@ -42,7 +46,7 @@ main () s.characters ("two"); assert (false); } - catch (const ios_base::failure& e) + catch (const ios_base::failure&) { } -- cgit v1.1