From 3eafd81d309ec4d6065e3bb7f6d99b002c89b65d Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 30 Sep 2008 11:31:42 +0000 Subject: [PATCH] Issue 0019990: Compile KERNEL in -Werror mode --- src/ResourcesManager/ResourcesManager.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2