Salome HOME
Get rid of compilation warnings. Part II. MSVC warnings.
[modules/shaper.git] / src / Config / Config_WidgetReader.cpp
index 2c0bf1a290a8d9036e5c1edd3795065c00f23cfa..f4fe27432f6bd755f10b9aae686d8ee73720b4e8 100644 (file)
@@ -107,7 +107,10 @@ std::string Config_WidgetReader::dumpNode(xmlNodePtr theNode)
     std::string anOwnPanel = getProperty(theNode, PROPERTY_PANEL_ID);
     if (!anOwnPanel.empty()) {
       xmlBufferPtr buffer = xmlBufferCreate();
-      int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
+#ifdef _DEBUG
+      int size =
+#endif
+        xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
       result = std::string((char*) (buffer->content));
       xmlBufferFree(buffer);
     }
@@ -116,7 +119,10 @@ std::string Config_WidgetReader::dumpNode(xmlNodePtr theNode)
   //Replace all "source" nodes with content;
   resolveSourceNodes(theNode);
   xmlBufferPtr buffer = xmlBufferCreate();
-  int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
+#ifdef _DEBUG
+  int size =
+#endif
+    xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
   result = std::string((char*) (buffer->content));
   xmlBufferFree(buffer);
   return result;