Salome HOME
Copyright update 2021
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_Client.cxx
index db0f0e245137dd402820f221519ff99754ed7ec0..c3fccc7b0122a25dac0e5b3aff6022ea5188fca0 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -71,6 +71,7 @@ static void DumpStudy() {
   MESSAGE("Explore Study and Write name of each object if it exists");
   
   char* name;
+  SALOME_UNUSED(name); // unused in release mode
   SALOMEDS::SComponentIterator_var itcomp = KERNEL::getStudyServant()->NewComponentIterator();
   int offset = 1;
   for (; itcomp->More(); itcomp->Next()) {
@@ -90,6 +91,7 @@ static void Test()
 {
   try {
   char* name;
+  SALOME_UNUSED(name); // unused in release mode
 
   SALOMEDS::Study_var myStudy = KERNEL::getStudyServant();
 
@@ -279,7 +281,7 @@ int main(int argc, char** argv)
   catch(CORBA::Exception&) {
     MESSAGE( "Caught CORBA::Exception." )
   }
-  catch(omniORB::fatalException& fe) {
+  catch(omniORB::fatalException& fe) { //!< TODO: unused variable
     MESSAGE( "Caught omniORB::fatalException:" )
     MESSAGE( "  file: " << fe.file() )
     MESSAGE( "  line: " << fe.line() )