diff options
author | Michi Henning <michi@zeroc.com> | 2004-05-19 04:44:42 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-05-19 04:44:42 +0000 |
commit | ca24bc9b3011b4a81593b230fcf71b12ccdc476a (patch) | |
tree | de2cc0478314a430f143160f18bf0e098d2b1180 /cpp/src/IceXML/Parser.cpp | |
parent | HP fixes (diff) | |
download | ice-ca24bc9b3011b4a81593b230fcf71b12ccdc476a.tar.bz2 ice-ca24bc9b3011b4a81593b230fcf71b12ccdc476a.tar.xz ice-ca24bc9b3011b4a81593b230fcf71b12ccdc476a.zip |
Fixed compiler warnings about unused variables when doing optimized build.
Diffstat (limited to 'cpp/src/IceXML/Parser.cpp')
-rw-r--r-- | cpp/src/IceXML/Parser.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/IceXML/Parser.cpp b/cpp/src/IceXML/Parser.cpp index 1951361e976..67ed145fbab 100644 --- a/cpp/src/IceXML/Parser.cpp +++ b/cpp/src/IceXML/Parser.cpp @@ -265,8 +265,11 @@ IceXML::DocumentBuilder::startElement(const string& name, const Attributes& attr NodePtr parent = _nodeStack.front(); Element* element = new Element(parent, name, attributes, line, column); - bool b = parent->addChild(element); - assert(b); +#if NDEBUG + parent->addChild(element); +#else + assert(parent->addChild(element)); +#endif _nodeStack.push_front(element); } |