Remove warnings
[anna.git] / source / xml / XPath.cpp
index 77803d9..f2e98cc 100644 (file)
@@ -67,7 +67,6 @@ throw(RuntimeException) {
 const xml::Node* xml::XPath::find(const Document& document, const char* expression, const int mode, const Exception::Mode::_v emode)
 throw(RuntimeException) {
   apply(document, expression, mode);
-  const xml::Node* result = NULL;
   Node::const_child_iterator ii = node_begin();
 
   if(ii == node_end()) {
@@ -238,6 +237,9 @@ throw(RuntimeException) {
         node->createText(decode(xmlNode->content));
 
       return;
+
+      default:
+       ;
     }
 
     xmlNode = xmlNode->next;