aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-13 12:28:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-13 12:28:41 +0200
commitc8015cb75d7d3b3c499ec86b84d099c4c1ab942b (patch)
tree106fdc9557c69e67ed8abe01f0f695d418dd5ec8 /examples
parent2c8d60040be993115dcd5be69529527c7fca4ee4 (diff)
Release version 1.1.0-b.10+2HEADv1.1.0-b.10+2master
Fix -Wunused-but-set-variable Clang 15 warning.
Diffstat (limited to 'examples')
-rw-r--r--examples/performance/driver.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/performance/driver.cxx b/examples/performance/driver.cxx
index 238f5ad..67eb349 100644
--- a/examples/performance/driver.cxx
+++ b/examples/performance/driver.cxx
@@ -9,6 +9,9 @@
#include "time.hxx"
+#undef NDEBUG
+#include <cassert>
+
using namespace std;
using namespace xml;
@@ -69,6 +72,8 @@ main (int argc, char* argv[])
break;
}
}
+
+ assert (start_count == end_count);
}
cerr << " elements: " << start_count << endl;
@@ -102,6 +107,8 @@ main (int argc, char* argv[])
break;
}
}
+
+ assert (start_count == end_count);
}
os::time end;