From: vsr Date: Tue, 30 Sep 2008 11:31:42 +0000 (+0000) Subject: Issue 0019990: Compile KERNEL in -Werror mode X-Git-Tag: RELIQUAT_4x_25102008~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3eafd81d309ec4d6065e3bb7f6d99b002c89b65d;p=modules%2Fkernel.git Issue 0019990: Compile KERNEL in -Werror mode --- diff --git a/src/ResourcesManager/ResourcesManager.cxx b/src/ResourcesManager/ResourcesManager.cxx index 18a549287..a9202c1b3 100644 --- a/src/ResourcesManager/ResourcesManager.cxx +++ b/src/ResourcesManager/ResourcesManager.cxx @@ -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