aboutsummaryrefslogtreecommitdiff
path: root/xsd/cxx/elements.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-03-19 09:28:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-03-19 09:28:37 +0200
commit4b3b5d47300f27dfda25caa9deff3f5ab1560cc8 (patch)
treedeb7e1c36bd53f221e669bdd98eb45a45ef5d363 /xsd/cxx/elements.cxx
parent2ff19bd5b0ab8bb13a94177ca6c172ae42e7d534 (diff)
Resolve Clang, GCC warnings
Diffstat (limited to 'xsd/cxx/elements.cxx')
-rw-r--r--xsd/cxx/elements.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/xsd/cxx/elements.cxx b/xsd/cxx/elements.cxx
index 5ee1f28..c72eb13 100644
--- a/xsd/cxx/elements.cxx
+++ b/xsd/cxx/elements.cxx
@@ -9,6 +9,7 @@
#include <memory>
#include <sstream>
#include <fstream>
+#include <cassert>
#include <iostream>
using std::wcerr;
@@ -861,7 +862,7 @@ namespace CXX
}
else
{
- unsigned int count;
+ unsigned int count (0);
unsigned int tmp[4];
if (u < 0x800)
@@ -891,7 +892,10 @@ namespace CXX
case 1:
{
tmp[0] = u | utf8_first_char_mask[count];
+ break;
}
+ default:
+ assert (false);
}
for (unsigned int j (0); j < count; ++j)