]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Issue 0019990: Compile KERNEL in -Werror mode
authorvsr <vsr@opencascade.com>
Tue, 30 Sep 2008 11:31:42 +0000 (11:31 +0000)
committervsr <vsr@opencascade.com>
Tue, 30 Sep 2008 11:31:42 +0000 (11:31 +0000)
src/ResourcesManager/ResourcesManager.cxx

index 18a549287089c915f1194702353bbad5f61df18c..a9202c1b32578cfc8aac25c075cdfdc848a72c18 100644 (file)
@@ -307,10 +307,11 @@ void ResourcesManager_cpp::WriteInXmlFile()
   handler->PrepareDocToXmlFile(aDoc);
   delete handler;
 
-  int isOk = xmlSaveFile(aFilePath, aDoc);
-  
 #if defined(_DEBUG_) || defined(_DEBUG)
+  int isOk = xmlSaveFile(aFilePath, aDoc);
   if (!isOk) cerr << "Error while XML file saving." << endl;
+#else
+  xmlSaveFile(aFilePath, aDoc);
 #endif
   
   // Free the document