aboutsummaryrefslogtreecommitdiff
path: root/tests/serializer/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-04-29 08:29:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-04-29 08:29:49 +0200
commit871082dc018815261b6ec75a8e4933505389ffae (patch)
tree6b92641afc8dbbf234fa5b46569ed4335cb4204b /tests/serializer/driver.cxx
parenteb95d50569946def5e55c73445c1d85f603e8536 (diff)
Support for autotools and VC++ 9, 10, 11 build systems
Diffstat (limited to 'tests/serializer/driver.cxx')
-rw-r--r--tests/serializer/driver.cxx8
1 files changed, 6 insertions, 2 deletions
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 <string>
#include <cassert>
#include <iostream>
@@ -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&)
{
}