aboutsummaryrefslogtreecommitdiff
path: root/tests/serializer/driver.cxx
diff options
context:
space:
mode:
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&)
{
}