]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
fight warnings c++17 error throw(). Build GEOM finished. Fix other warnings
authorSALOME <salome@opencascade.com>
Fri, 21 Aug 2020 05:03:19 +0000 (08:03 +0300)
committerSALOME <salome@opencascade.com>
Fri, 21 Aug 2020 05:03:19 +0000 (08:03 +0300)
52 files changed:
src/Basics/Basics_DirUtils.cxx
src/Container/Container_i.cxx
src/Container/SALOME_ContainerManager.cxx
src/Container/TestSalome_file.cxx
src/DF/DF_Label.cxx
src/DSC/DSC_User/DSC_Exception.hxx
src/DSC/DSC_User/Datastream/Calcium/Calcium.hxx
src/DSC/DSC_User/Datastream/Calcium/CalciumCInterface.hxx
src/DSC/DSC_User/Datastream/Calcium/CalciumCouplingPolicy.cxx
src/DSC/DSC_User/Datastream/Calcium/CalciumCouplingPolicy.hxx
src/DSC/DSC_User/Datastream/Calcium/CalciumCxxInterface.cxx
src/DSC/DSC_User/Datastream/Calcium/CalciumCxxInterface.hxx
src/DSC/DSC_User/Datastream/Calcium/CalciumGenericProvidesPort.hxx
src/DSC/DSC_User/Datastream/Calcium/CalciumGenericUsesPort.hxx
src/DSC/DSC_User/Datastream/Calcium/calcium_destructors_port_uses.cxx
src/DSC/DSC_User/Datastream/Calcium/calcium_provides_port.hxx
src/DSC/DSC_User/Datastream/Calcium/calcium_uses_port.hxx
src/DSC/DSC_User/Datastream/CorbaTypeManipulator.hxx
src/DSC/DSC_User/Datastream/DisplayPair.hxx
src/DSC/DSC_User/Datastream/GenericPort.hxx
src/DSC/DSC_User/Datastream/GenericUsesPort.hxx
src/DSC/DSC_User/Datastream/fake.cc
src/DSC/DSC_User/Superv_Component_i.cxx
src/DSC/DSC_User/Superv_Component_i.hxx
src/DSC/DSC_User/provides_port.hxx
src/GenericObj/SALOME_GenericObj_i.cc
src/HDFPersist/HDFconvert.cc
src/HDFPersist/HDFgroup.cc
src/KernelHelpers/SALOMEDS_DriverDefaultImpl.cxx
src/KernelHelpers/SALOMEDS_DriverDefaultImpl.hxx
src/Launcher/SALOME_ExternalServerHandler.cxx
src/Launcher/SALOME_ExternalServerLauncher.cxx
src/Launcher/SALOME_Launcher_Parser.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx
src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx
src/NamingService/SALOME_NamingService.cxx
src/SALOMEDS/SALOMEDS.hxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeParameter.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeSequenceOfInteger.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeSequenceOfReal.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeStudyProperties.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTableOfInteger.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTableOfReal.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTableOfString.cxx
src/SALOMEDSImpl/SALOMEDSImpl_Callback.hxx
src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx
src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx
src/SALOMESDS/SALOMESDS_PickelizedPyObjRdOnlyServer.cxx
src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx
src/SALOMESDS/SALOMESDS_RefCountServ.cxx
src/SALOMESDS/SALOMESDS_Sha1Keeper.cxx
src/Utils/Test/UtilsTest.cxx

index dee7639dac87a37de04cf43b31e077c8d437849a..9fc6eb6f08708eb8002ba4e17fb8c3941fe1b343 100644 (file)
@@ -55,12 +55,12 @@ namespace Kernel_Utils
   {
     std::string tmp_str = file_path;
     auto pos = file_path.rfind( _separator_ );
-    if ( pos >= 0 )
-      tmp_str = pos < (int)file_path.size()-1 ? file_path.substr( pos+1 ) : "";
+    if ( pos >= 0 ) // TODO: always true
+      tmp_str = pos < file_path.size()-1 ? file_path.substr( pos+1 ) : "";
 
     pos = tmp_str.rfind( _extension_ );
-    if( !with_extension && pos >= 0 )
-      tmp_str = pos < (int)tmp_str.size()-1 ? tmp_str.substr( 0, pos ) : "";
+    if( !with_extension && pos >= 0 ) // TODO: always true
+      tmp_str = pos < tmp_str.size()-1 ? tmp_str.substr( 0, pos ) : "";
 
     return tmp_str;
   }
@@ -68,8 +68,8 @@ namespace Kernel_Utils
   std::string GetDirName( const std::string& file_path )
   {
     auto pos = file_path.rfind( _separator_ );
-    if ( pos >= 0 )
-      return pos < (int)file_path.size()-1 ? file_path.substr(0, pos ) : "";
+    if ( pos >= 0 ) // TODO: always true
+      return pos < file_path.size()-1 ? file_path.substr(0, pos ) : "";
     return std::string(".");
   }
 
@@ -191,7 +191,7 @@ namespace Kernel_Utils
   {
     std::string tmp_str = name;
     auto pos = tmp_str.rfind( _extension_ );
-    if( pos < 0 )
+    if( pos < 0 ) // TODO: always true
       return tmp_str.append( _extension_ );
     return tmp_str;
   }
index 12369b96eb5249908d8b26c19b49f9353a02b556..b8766c00eaada367273112305230a65c73c2e4f5 100644 (file)
@@ -1387,9 +1387,9 @@ void SetCpuUsed() ;
 void CallCancelThread() ;
 
 #ifndef WIN32
-void SigIntHandler(int what ,
+void SigIntHandler(int /*what*/ ,
                    siginfo_t * siginfo ,
-                   void * toto ) 
+                   void * /*toto*/ ) 
 {
   //PAL9042 JR : during the execution of a Signal Handler (and of methods called through Signal Handlers)
   //             use of streams (and so on) should never be used because :
index 6658042559a522af4293f26d44dd244dc34781c0..31055148620f4c9ee7e60a6849aba3a490ab0867 100644 (file)
@@ -2010,10 +2010,9 @@ SALOME_ContainerManager::LaunchPaCONodeContainer(const std::string& command,
 #else
 
 Engines::Container_ptr
-SALOME_ContainerManager::StartPaCOPPContainer(const Engines::ContainerParameters& params,
-                                              std::string resource_selected)
+SALOME_ContainerManager::StartPaCOPPContainer(const Engines::ContainerParameters& /*params*/,
+                                              std::string /*resource_selected*/)
 {
-  SALOME_UNUSED(params);
   Engines::Container_ptr ret = Engines::Container::_nil();
   INFOS("[StarPaCOPPContainer] is disabled !");
   INFOS("[StarPaCOPPContainer] recompile SALOME Kernel to enable PaCO++ parallel extension");
@@ -2021,65 +2020,46 @@ SALOME_ContainerManager::StartPaCOPPContainer(const Engines::ContainerParameters
 }
 
 std::string
-SALOME_ContainerManager::BuildCommandToLaunchPaCOProxyContainer(const Engines::ContainerParameters& params,
-                                                                std::string machine_file_name,
-                                                                std::string & proxy_hostname)
+SALOME_ContainerManager::BuildCommandToLaunchPaCOProxyContainer(const Engines::ContainerParameters& /*params*/,
+                                                                std::string /*machine_file_name*/,
+                                                                std::string & /*proxy_hostname*/)
 {
-  SALOME_UNUSED(params);
-  SALOME_UNUSED(proxy_hostname);
   return "";
 }
 
 std::string
-SALOME_ContainerManager::BuildCommandToLaunchPaCONodeContainer(const Engines::ContainerParameters& params,
-                                                               const std::string & machine_file_name,
-                                                               SALOME_ContainerManager::actual_launch_machine_t & vect_machine,
-                                                               const std::string & proxy_hostname)
+SALOME_ContainerManager::BuildCommandToLaunchPaCONodeContainer(const Engines::ContainerParameters& /*params*/,
+                                                               const std::string & /*machine_file_name*/,
+                                                               SALOME_ContainerManager::actual_launch_machine_t & /*vect_machine*/,
+                                                               const std::string & /*proxy_hostname*/)
 {
-  SALOME_UNUSED(params);
-  SALOME_UNUSED(machine_file_name);
-  SALOME_UNUSED(vect_machine);
-  SALOME_UNUSED(proxy_hostname);
   return "";
 }
 void
-SALOME_ContainerManager::LogConfiguration(const std::string & log_type,
-                                          const std::string & exe_type,
-                                          const std::string & container_name,
-                                          const std::string & hostname,
-                                          std::string & begin,
-                                          std::string & end)
+SALOME_ContainerManager::LogConfiguration(const std::string & /*log_type*/,
+                                          const std::string & /*exe_type*/,
+                                          const std::string & /*container_name*/,
+                                          const std::string & /*hostname*/,
+                                          std::string & /*begin*/,
+                                          std::string & /*end*/)
 {
-       SALOME_UNUSED(log_type);
-       SALOME_UNUSED(exe_type);
-       SALOME_UNUSED(container_name);
-       SALOME_UNUSED(hostname);
-       SALOME_UNUSED(begin);
-       SALOME_UNUSED(end);
 }
 
 CORBA::Object_ptr
-SALOME_ContainerManager::LaunchPaCOProxyContainer(const std::string& command,
-                                                  const Engines::ContainerParameters& params,
-                                                  const std::string& hostname)
+SALOME_ContainerManager::LaunchPaCOProxyContainer(const std::string& /*command*/,
+                                                  const Engines::ContainerParameters& /*params*/,
+                                                  const std::string& /*hostname*/)
 {
-  SALOME_UNUSED(command);
-  SALOME_UNUSED(params);
-  SALOME_UNUSED(hostname);
   CORBA::Object_ptr ret = CORBA::Object::_nil();
   return ret;
 }
 
 bool
-SALOME_ContainerManager::LaunchPaCONodeContainer(const std::string& command,
-                        const Engines::ContainerParameters& params,
-                        const std::string& name,
-                        SALOME_ContainerManager::actual_launch_machine_t & vect_machine)
-{
-  SALOME_UNUSED(command);
-  SALOME_UNUSED(params);
-  SALOME_UNUSED(name);
-  SALOME_UNUSED(vect_machine);
-  return false;
+SALOME_ContainerManager::LaunchPaCONodeContainer(const std::string& /*command*/,
+                        const Engines::ContainerParameters& /*params*/,
+                        const std::string& /*name*/,
+                        SALOME_ContainerManager::actual_launch_machine_t & /*vect_machine*/)
+{  
+   return false;
 }
 #endif
index 36095892a376207b641d6d7d9596b0d58b3057ae..2195c489f4e05bd08f33a041fbf257c5cf417140 100644 (file)
@@ -73,7 +73,7 @@ int main (int argc, char * argv[])
   std::cerr << "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
   std::cerr << "Test of getFilesInfos()" << std::endl;
   all_infos = file.getFilesInfos();
-  for (int i = 0; i < all_infos->length(); i++)
+  for (int i = 0; i < (int)all_infos->length(); i++)
   {
     print_infos(&((*all_infos)[i]));
   }
index 7bcc0468b1db7d2dbc077ca7445969b29b24a5c1..6b4761bda9386790587e3dab8826466795f2c7e2 100644 (file)
@@ -247,7 +247,7 @@ std::vector<DF_Attribute*> DF_Label::GetAttributes() const
     
   sort(sorted.begin(), sorted.end());
   size_t len = sorted.size();
-  for(int i = 0; i<len; i++)
+  for(size_t i = 0; i<len; i++)
     attributes.push_back(_node->_attributes[sorted[i]]);
 
   return attributes;
index 15a55778fafdf2cfe3d80c80d34cb0336d224230..c44cf256006d536b9d69bc6bb61cd7c353c81297 100644 (file)
@@ -176,6 +176,6 @@ protected:
 //Sert à eviter le problème d'identification RTTI des exceptions
 //Crée un unique typeInfo pour tous les bibliothèques composants SALOME
 //dans un fichier cxx
-#define DSC_EXCEPTION_CXX(NameSpace,Derived) NameSpace::Derived::~Derived(void) {};
+#define DSC_EXCEPTION_CXX(NameSpace,Derived) NameSpace::Derived::~Derived(void) {}
 
 #endif /* DSC_EXCEPTION_HXX */
index 93551353bd8562058a1858734f2eb0e51d8e6aaf..f0e4f98fb7c21a2ef227b0f82e7c3d85896723fe 100644 (file)
@@ -29,9 +29,9 @@ class PySupervCompo:public Superv_Component_i
          const char *interfaceName,
          bool notif = false);
     virtual ~PySupervCompo();
-    CORBA::Boolean init_service(const char * service_name){return true;};
-    CORBA::Boolean init_service_with_multiple(const char* service_name,
-                                              const Engines::Superv_Component::seq_multiple_param & params)
+    CORBA::Boolean init_service(const char * /*service_name*/){return true;};
+    CORBA::Boolean init_service_with_multiple(const char* /*service_name*/,
+                                              const Engines::Superv_Component::seq_multiple_param & /*params*/)
     {
       return true;
     }
index 83c05e26a961ea9431b6c1f36645a90180fa2f51..f934245dbdee0ffaf37b98067a1494d611851a6e 100644 (file)
@@ -71,22 +71,22 @@ template <> struct CalTimeType<double> {
    il sera mappé sur le type int (si il est 32bits). Le type CORBA:LongLong est mappé sur le type long
    s'il est 64 bits sinon celà peut être un long long (s'il existe).
 */
-CALCIUM_C2CPP_INTERFACE_HXX_(intc,int,int,);
-CALCIUM_C2CPP_INTERFACE_HXX_(long,long,long,);
+CALCIUM_C2CPP_INTERFACE_HXX_(intc,int,int,)
+CALCIUM_C2CPP_INTERFACE_HXX_(long,long,long,)
 
-CALCIUM_C2CPP_INTERFACE_HXX_(integer,integer,cal_int,);
-CALCIUM_C2CPP_INTERFACE_HXX_(int2integer,integer,int,);
-CALCIUM_C2CPP_INTERFACE_HXX_(long2integer,integer, long,);
+CALCIUM_C2CPP_INTERFACE_HXX_(integer,integer,cal_int,)
+CALCIUM_C2CPP_INTERFACE_HXX_(int2integer,integer,int,)
+CALCIUM_C2CPP_INTERFACE_HXX_(long2integer,integer, long,)
 
-CALCIUM_C2CPP_INTERFACE_HXX_(float,float,float, );
-CALCIUM_C2CPP_INTERFACE_HXX_(double,double,double,);
+CALCIUM_C2CPP_INTERFACE_HXX_(float,float,float, )
+CALCIUM_C2CPP_INTERFACE_HXX_(double,double,double,)
 
-CALCIUM_C2CPP_INTERFACE_HXX_(float2double,double,float, );
+CALCIUM_C2CPP_INTERFACE_HXX_(float2double,double,float, )
 
 /*  Fonctionne mais essai suivant pour simplification de Calcium.c CALCIUM_C2CPP_INTERFACE_(bool,bool,);*/
-CALCIUM_C2CPP_INTERFACE_HXX_(bool,bool,int,);
-CALCIUM_C2CPP_INTERFACE_HXX_(cplx,cplx,float,);
-CALCIUM_C2CPP_INTERFACE_HXX_(str,str,char*,);
+CALCIUM_C2CPP_INTERFACE_HXX_(bool,bool,int,)
+CALCIUM_C2CPP_INTERFACE_HXX_(cplx,cplx,float,)
+CALCIUM_C2CPP_INTERFACE_HXX_(str,str,char*,)
 
 /* Déclaration de ecp_fin */
 extern "C" CalciumTypes::InfoType ecp_fin_ (void * component, int code);
index fdb95d670dd71b248dcf45020f56bb7a248ab0e0..b099c9ca5f8f69eb5cbb4b3760efce6a8ae15467 100644 (file)
@@ -33,14 +33,14 @@ CalciumCouplingPolicy::CalciumCouplingPolicy():_dependencyType(CalciumTypes::UND
                                                _interpolationSchem(CalciumTypes::L1_SCHEM),
                                                _extrapolationSchem(CalciumTypes::UNDEFINED_EXTRA_SCHEM),
                                                _alpha(0.0),_deltaT(CalciumTypes::EPSILON),
-                                               _disconnectDirective(CalciumTypes::UNDEFINED_DIRECTIVE){};
+                                               _disconnectDirective(CalciumTypes::UNDEFINED_DIRECTIVE){}
 
 void CalciumCouplingPolicy::setDependencyType (CalciumTypes::DependencyType dependencyType) {_dependencyType=dependencyType;}
 CalciumTypes::DependencyType CalciumCouplingPolicy::getDependencyType () const              { return _dependencyType;}
  
 void   CalciumCouplingPolicy::setStorageLevel   (size_t         storageLevel)   {
   MESSAGE( "CalciumCouplingPolicy::setStorageLevel: " << storageLevel );
-  if ( storageLevel < 1 && (storageLevel != CalciumTypes::UNLIMITED_STORAGE_LEVEL)  )
+  if ( storageLevel < 1 && (storageLevel != (size_t)CalciumTypes::UNLIMITED_STORAGE_LEVEL)  )
     throw CalciumException(CalciumTypes::CPRENA,LOC("StorageLevel < 1 is not allowed"));
   _storageLevel = storageLevel;
 }
@@ -88,8 +88,8 @@ void CalciumCouplingPolicy::setExtrapolationSchem (CalciumTypes::ExtrapolationSc
 _extrapolationSchem=extrapolationSchem;
 }
 
-CalciumTypes::InterpolationSchem CalciumCouplingPolicy::getInterpolationSchem () const { return _interpolationSchem; };
-CalciumTypes::ExtrapolationSchem CalciumCouplingPolicy::getExtrapolationSchem () const { return _extrapolationSchem; };
+CalciumTypes::InterpolationSchem CalciumCouplingPolicy::getInterpolationSchem () const { return _interpolationSchem; }
+CalciumTypes::ExtrapolationSchem CalciumCouplingPolicy::getExtrapolationSchem () const { return _extrapolationSchem; }
 
 
 CalciumCouplingPolicy::TimeType 
index f19d165c522742ef26a027ebb9af24d6e589d06e..0a6df4de1459d39ea9e46165a5ecb94898d218e8 100644 (file)
@@ -168,11 +168,11 @@ struct CalciumCouplingPolicy::InternalDataIdContainer : public std::vector< std:
 
 template <typename DataManipulator, class EnableIf >
 struct CalciumCouplingPolicy::BoundedDataIdProcessor{
-  BoundedDataIdProcessor(const CouplingPolicy & couplingPolicy) {};
+  BoundedDataIdProcessor(const CouplingPolicy & /*couplingPolicy*/) {};
   template < typename Iterator, typename DataId > 
-  void inline apply(typename iterator_t<Iterator>::value_type & data,
-                    const DataId & dataId,
-                    const Iterator  & it1) const {
+  void inline apply(typename iterator_t<Iterator>::value_type & /*data*/,
+                    const DataId & /*dataId*/,
+                    const Iterator  & /*it1*/) const {
     typedef typename iterator_t<Iterator>::value_type value_type;
 #ifdef MYDEBUG
     std::cout << "-------- Calcium Generic BoundedDataIdProcessor.apply() called " << std::endl;
@@ -441,7 +441,7 @@ struct CalciumCouplingPolicy::EraseDataIdProcessor {
     std::cout << "-------- CalciumCouplingPolicy::eraseDataId, storedDatasSize : " << storedDatas.size() << std::endl;
 #endif
  
-    if ( _couplingPolicy._storageLevel == CalciumTypes::UNLIMITED_STORAGE_LEVEL ) return;
+    if ( _couplingPolicy._storageLevel == (size_t)CalciumTypes::UNLIMITED_STORAGE_LEVEL ) return;
  
     size_t storedDatasSize = storedDatas.size();
     long   s = storedDatasSize - _couplingPolicy._storageLevel;
@@ -453,7 +453,7 @@ struct CalciumCouplingPolicy::EraseDataIdProcessor {
               storedDatas.erase(storedDatas.begin());
       }
       // Si l'itérateur pointait sur une valeur que l'on vient de supprimer
-      if (dist < s ) {
+      if (dist < (size_t)s ) {
         throw(CalciumException(CalciumTypes::CPNTNULL,LOC(OSS()<< "StorageLevel management " 
                                             << _couplingPolicy._storageLevel << 
                                             " has just removed the data to send")));
index 9a55e32b20e8ae306337dcae9e92dbd3e6560ef3..0f7a3843d623557c1bb0034ca497c7fa79613080 100644 (file)
@@ -30,5 +30,5 @@
 
 namespace CalciumInterface 
 {
-};
+}
 
index b3c55ae47371cbd4b00147e307485d4d897f8642..2995e687a874911a8a42fe3270362eb1b17fe25b 100644 (file)
@@ -606,7 +606,7 @@ namespace CalciumInterface {
 #endif
    
     return;
-  };
+  }
   
   template <typename T1> static void
   ecp_ecriture ( Superv_Component_i & component,
@@ -618,7 +618,7 @@ namespace CalciumInterface {
                  T1 const & data ) 
   {
     ecp_ecriture<T1,T1> (component,dependencyType,t,i,nomVar,bufferLength,data); 
-  };
+  }
 
   static inline void
   ecp_fini(Superv_Component_i & component,const std::string  & nomVar,long const  & i)
@@ -677,7 +677,7 @@ namespace CalciumInterface {
     msg << "i<=" << i ;
     Engines_DSC_interface::writeEvent("CP_FINI",containerName,componentName,nomVar.c_str(),"",msg.str().c_str());
 
-  };
+  }
 
   static inline void
   ecp_fint(Superv_Component_i & component,const std::string  & nomVar,double const  & t)
@@ -736,7 +736,7 @@ namespace CalciumInterface {
     msg << "t<=" << t ;
     Engines_DSC_interface::writeEvent("CP_FINT",containerName,componentName,nomVar.c_str(),"",msg.str().c_str());
 
-  };
+  }
 
   static inline void
   ecp_effi(Superv_Component_i & component,const std::string  & nomVar,long const  & i)
@@ -795,7 +795,7 @@ namespace CalciumInterface {
     msg << "i>=" << i ;
     Engines_DSC_interface::writeEvent("CP_EFFI",containerName,componentName,nomVar.c_str(),"",msg.str().c_str());
 
-  };
+  }
 
   static inline void
   ecp_efft(Superv_Component_i & component,const std::string  & nomVar,double const  & t)
@@ -854,8 +854,8 @@ namespace CalciumInterface {
     msg << "t>=" << t ;
     Engines_DSC_interface::writeEvent("CP_EFFT",containerName,componentName,nomVar.c_str(),"",msg.str().c_str());
 
-  };
+  }
 
-};
+}
 
 #endif
index 16c25ba8f2adbc9b4999b5e122e2ab36446d7c04..16f03573d64ecb9aee454b0a5025a221215a93ec 100644 (file)
     virtual CORBA::Any* get_property(const char* name)                  \
       ;                                                                        \
                                                                         \
-    virtual void provides_port_changed(int connection_nbr,              \
+    virtual void provides_port_changed(int /*connection_nbr*/,          \
                                        const Engines::DSC::Message message) { \
       if ( message == Engines::DSC::AddingConnection)                   \
         {                                                               \
 
 #define CALCIUM_GENERIC_PROVIDES_PORT_CXX(specificPortName)             \
                                                                         \
-  specificPortName::~specificPortName(void) {};                         \
+  specificPortName::~specificPortName(void) {}                         \
                                                                         \
   void specificPortName::set_property(const char * name,  const CORBA::Any& value) \
      {                                                                 \
       throw Ports::NotDefined();                                        \
     }                                                                   \
     return value;                                                       \
-  };                                            
+  }                                            
                                                                         
 
 #endif
index 6dd5746a147c399bc92d7b8fe907d1bf38a1b972..7d3518f302a3fb069b8d30d0279551de4ef39804 100644 (file)
@@ -51,7 +51,7 @@ CalciumGenericUsesPort< DataManipulator,CorbaPortType, repositoryName >::disconn
   if (!this->_my_ports)
     throw DSC_Exception(LOC("There is no connected provides port to communicate with."));
 
-  for(int i = 0; i < this->_my_ports->length(); i++) {
+  for(int i = 0; i < (int)this->_my_ports->length(); i++) {
     CorbaPortTypePtr port = CorbaPortType::_narrow((*this->_my_ports)[i]);
     try {
 #ifdef MYDEBUG
index 5d3a48996ec8f26c213ca29622499f5b1d21f4e6..1f4c59374841418b6503afab7496acf78325b94b 100644 (file)
 #include "calcium_logical_port_uses.hxx"
 #include "calcium_complex_port_uses.hxx"
 
-calcium_real_port_uses::~calcium_real_port_uses(void) {};
-calcium_double_port_uses::~calcium_double_port_uses(void) {};
-calcium_integer_port_uses::~calcium_integer_port_uses(void) {};
-calcium_long_port_uses::~calcium_long_port_uses(void) {};
-calcium_intc_port_uses::~calcium_intc_port_uses(void) {};
-calcium_logical_port_uses::~calcium_logical_port_uses(void) {};
-calcium_complex_port_uses::~calcium_complex_port_uses(void) {};
-calcium_string_port_uses::~calcium_string_port_uses(void) {};
+calcium_real_port_uses::~calcium_real_port_uses(void) {}
+calcium_double_port_uses::~calcium_double_port_uses(void) {}
+calcium_integer_port_uses::~calcium_integer_port_uses(void) {}
+calcium_long_port_uses::~calcium_long_port_uses(void) {}
+calcium_intc_port_uses::~calcium_intc_port_uses(void) {}
+calcium_logical_port_uses::~calcium_logical_port_uses(void) {}
+calcium_complex_port_uses::~calcium_complex_port_uses(void) {}
+calcium_string_port_uses::~calcium_string_port_uses(void) {}
index 9f8e042d45fe5cff3777a79cf620799b516cde88..2507153b4c7377f594887c903222cfbf9f4fc138 100644 (file)
@@ -63,7 +63,7 @@ public :
   virtual  InterpolationSchem getInterpolationSchem () const  =0;
   virtual  ExtrapolationSchem getExtrapolationSchem () const  =0;
 
-  virtual void calcium_erase (float t,long i, bool before) {};
+  virtual void calcium_erase (float /*t*/,long /*i*/, bool /*before*/) {};
 };
 
 #endif
index 2034e459414de3892cd4cbff0da44e3729e7156f..533880831fb717afab1bb7769f1aad1a5d23e936 100644 (file)
@@ -37,7 +37,7 @@ class calcium_uses_port : public uses_port
 public :
   calcium_uses_port();
   virtual ~calcium_uses_port();
-  virtual void disconnect (bool provideLastGivenValue) {};
+  virtual void disconnect (bool /*provideLastGivenValue*/) {};
 };
 
 #endif
index 3747f7612d3fcab461481ed058919b7358ce82e0..53073cfe643e81a05edf88459746797de51c37a3 100644 (file)
@@ -178,7 +178,7 @@ public:
 //   } 
     
   // Operation de destruction d'une donnee: rien a faire car pas de memoire a liberer
-  static inline void delete_data(Type data) {}
+  static inline void delete_data(Type /*data*/) {}
     // Renvoie la taille de la donnée
 
   static inline size_t size(Type data) { 
@@ -325,7 +325,7 @@ public:
     
     InnerType *dataPtr  = getPointer(data,false);
 
-    for (int i = 0; i< isize; ++i) 
+    for (size_t i = 0; i< isize; ++i) 
       idata[i]=dataPtr[i];
 
     // Le mode de recopie suivant ne permet pas  la conversion de type (ex int -> CORBA::Long)
@@ -352,7 +352,7 @@ public:
 
     // Si idata[i] n'a pas été alloué suffisament grand,
     // il y a corruption de la mémoire
-    for (int i = 0; i< isize; ++i) 
+    for (size_t i = 0; i< isize; ++i) 
       strcpy(idata[i],dataPtr[i]);
   }
   
index fecb4c6af6c10efd91a7faf4bc76d6446bf01829..aa6d0f4d0e78ebebaf87d828dbb6401341851ed9 100644 (file)
@@ -35,7 +35,7 @@
 template <typename T, typename U> std::ostream & operator <<(std::ostream & os, const std::pair<T,U> & p)
 { os << "(" << p.first << "," << p.second << ")";
   return os;
-};
+}
 
 
 #endif
index 3e95ef50d9519fb96850baccfad2e3835bc2d5c5..aaf6fea6ae3c67b8b5fd3da5fd72b442d0ea2fb1 100644 (file)
@@ -686,6 +686,6 @@ GenericPort<DataManipulator, COUPLING_POLICY>::next(TimeType &t,
   // Du coup interaction potentielle entre le 0 copy et gestion des niveaux 
   return dataToTransmit; 
 
-};
+}
 
 #endif
index c1ab6b97492278e905835eacc986ea9f05ced8e9..105e17805a3bf780ab0cbcfc4bf6f6842d520aac 100644 (file)
 
 #include "DSC_Exception.hxx"
 
-// #define GENERATE_USES_PORT(dataManip,portType,portName)                      \
-//   const char * _repository_##portType##_name_ = "IDL:Ports/##portType##:1.0"; \
-//   GenericUsesPort< dataManip, portType, _repository_##portType##_name_ > portName;
+/* #define GENERATE_USES_PORT(dataManip,portType,portName)                      \
+   const char * _repository_##portType##_name_ = "IDL:Ports/##portType##:1.0"; \
+   GenericUsesPort< dataManip, portType, _repository_##portType##_name_ > portName;
 
-//ex : GENERATE_USES_PORT(Ports::Data_Short_Port,data_short_port);
+ex : GENERATE_USES_PORT(Ports::Data_Short_Port,data_short_port);*/
 
 template <typename DataManipulator, typename CorbaPortType, char * repositoryName, 
           typename UsesPort=uses_port > 
@@ -134,7 +134,7 @@ template <typename DataManipulator, typename CorbaPortType, char * repositoryNam
 void 
 GenericUsesPort< DataManipulator, CorbaPortType, repositoryName, UsesPort  
                  >::uses_port_changed(Engines::DSC::uses_port * new_uses_port,
-                                      const Engines::DSC::Message message)
+                                      const Engines::DSC::Message /*message*/)
 {
   if (_my_ports) delete _my_ports;
 
index 3211ee31a05e9a0f8ad323c3bd2dd73e7c9ffbc3..d1d07610fa3904ee739f04130f9e2a3529f2c9ad 100644 (file)
@@ -26,4 +26,4 @@
 //
 void fake_method(void) {
   // int fake_int;
-};
+}
index 0822c66de936046d0c576f1f4403275dfb135647..a5f81188f1dba0884264a6d62ac8dcdb908482ee 100644 (file)
 //
 #include "Superv_Component_i.hxx"
 
-DSC_EXCEPTION_CXX(Superv_Component_i,BadFabType);
-DSC_EXCEPTION_CXX(Superv_Component_i,BadType);
-DSC_EXCEPTION_CXX(Superv_Component_i,BadCast);
-DSC_EXCEPTION_CXX(Superv_Component_i,UnexpectedState);
-DSC_EXCEPTION_CXX(Superv_Component_i,PortAlreadyDefined);
-DSC_EXCEPTION_CXX(Superv_Component_i,PortNotDefined);
-DSC_EXCEPTION_CXX(Superv_Component_i,PortNotConnected);
-DSC_EXCEPTION_CXX(Superv_Component_i,NilPort);
-DSC_EXCEPTION_CXX(Superv_Component_i,BadProperty);
+DSC_EXCEPTION_CXX(Superv_Component_i,BadFabType)
+DSC_EXCEPTION_CXX(Superv_Component_i,BadType)
+DSC_EXCEPTION_CXX(Superv_Component_i,BadCast)
+DSC_EXCEPTION_CXX(Superv_Component_i,UnexpectedState)
+DSC_EXCEPTION_CXX(Superv_Component_i,PortAlreadyDefined)
+DSC_EXCEPTION_CXX(Superv_Component_i,PortNotDefined)
+DSC_EXCEPTION_CXX(Superv_Component_i,PortNotConnected)
+DSC_EXCEPTION_CXX(Superv_Component_i,NilPort)
+DSC_EXCEPTION_CXX(Superv_Component_i,BadProperty)
 
 std::map<std::string, port_factory*> Superv_Component_i::_factory_map;
 long Superv_Component_i::dscTimeOut=0;
@@ -48,6 +48,7 @@ Superv_Component_i::Superv_Component_i(CORBA::ORB_ptr orb,
                                        bool notif) : 
   Engines_DSC_i(orb, poa, contId, instanceName, interfaceName) 
 {
+  SALOME_UNUSED(notif);
 #ifdef MYDEBUG
   std::cerr << "--Superv_Component_i : MARK 1 ----  " << instanceName << "----" << std::endl;
 #endif
@@ -315,7 +316,7 @@ Superv_Component_i::uses_port_changed(const char* uses_port_name,
 void
 Superv_Component_i::get_uses_port_names(std::vector<std::string> & port_names,
                                         const std::string servicename) const {
-
+  SALOME_UNUSED(servicename);
   port_names.reserve(my_superv_ports.size());
 
   superv_ports::const_iterator it;
index 43972c6705605819bb8bf50f16453d019e79679e..43aa45b5e534aa5089121ab5a0cbd0f640329eeb 100644 (file)
@@ -32,6 +32,7 @@
 #include "uses_port.hxx"
 #include "provides_port.hxx"
 #include "port_factory.hxx"
+#include "Basics_Utils.hxx"
 
 #include "DSC_Exception.hxx"
 #include <vector>
@@ -73,15 +74,15 @@ public:
   // Exceptions declarations.
   // There are defined on the Superv_Component_i.cxx to avoid problems
   // from dlopen.
-  DSC_EXCEPTION(BadFabType);
-  DSC_EXCEPTION(BadType);
-  DSC_EXCEPTION(BadCast);
-  DSC_EXCEPTION(UnexpectedState);
-  DSC_EXCEPTION(PortAlreadyDefined);
-  DSC_EXCEPTION(PortNotDefined);
-  DSC_EXCEPTION(PortNotConnected);
-  DSC_EXCEPTION(NilPort);
-  DSC_EXCEPTION(BadProperty);
+  DSC_EXCEPTION(BadFabType)
+  DSC_EXCEPTION(BadType)
+  DSC_EXCEPTION(BadCast)
+  DSC_EXCEPTION(UnexpectedState)
+  DSC_EXCEPTION(PortAlreadyDefined)
+  DSC_EXCEPTION(PortNotDefined)
+  DSC_EXCEPTION(PortNotConnected)
+  DSC_EXCEPTION(NilPort)
+  DSC_EXCEPTION(BadProperty)
   
   /*!
    * \warning currently disabled.
@@ -93,7 +94,7 @@ public:
    * \warning currently disabled.
    */
   virtual provides_port * create_provides_data_and_control_port(const char* port_type) 
-  {return NULL;}
+  {SALOME_UNUSED(port_type);return NULL;}
 
   /*!
    * \warning currently disabled.
@@ -105,7 +106,7 @@ public:
    * \warning currently disabled.
    */
   virtual uses_port * create_uses_data_and_control_port(const char* port_type)
-  {return NULL;}
+  {SALOME_UNUSED(port_type);return NULL;}
 
   /*!
    * This method permits to create a provides port provided by the platform.
@@ -269,6 +270,8 @@ public:
   virtual CORBA::Boolean init_service_with_multiple(const char* service_name,
                                                     const Engines::Superv_Component::seq_multiple_param & params)
   {
+    SALOME_UNUSED(service_name);
+    SALOME_UNUSED(params);
     return true;
   }
 
@@ -358,7 +361,7 @@ Superv_Component_i::add_port(const char * port_fab_type,
                       << port_type));
   
   return retPort;
-};
+}
 
 
 template <typename SpecificPortType > SpecificPortType * 
@@ -404,7 +407,7 @@ Superv_Component_i::get_port( const char * port_name)
   }
 
   return retPort;
-};
+}
 
 
 #endif
index 0205e3f9112c8f62a514db97940d7f14d4288330..25e4ae7686782d3566aab6d8ae9f0325fba7c525 100644 (file)
@@ -57,8 +57,8 @@ class provides_port : public base_port
      * \param connection_nbr current connection number.
      * \param message message associated with this connection.
      */
-    virtual void provides_port_changed(int connection_nbr,
-                                       const Engines::DSC::Message message) {}
+    virtual void provides_port_changed(int /*connection_nbr*/,
+                                       const Engines::DSC::Message /*message*/) {}
 
 };
 
index 0d302636e22963ccfe4f82b334a6116b61336395..e257df6cfcd2f9cdd89dc936be27bac9e184eeb7 100644 (file)
@@ -150,4 +150,4 @@ namespace SALOME
     UnRegister();
   }
 
-}; // end of namespace SALOME
+} // end of namespace SALOME
index 665f86a452d03c6aa981019ca13aaa7860e17c64..e2c74e2f58e284db45ec9bda0fd448a5d5cdabcb 100644 (file)
@@ -124,4 +124,4 @@ int HDFConvert::FromAscii(const std::string& file, const HDFcontainerObject & hd
     
   // TODO: return <int> or <size_t>?
   return static_cast<int>(length);    
-};
+}
index 2db76d5caa5734f65331b592f8689c5bf243d488..e6c888e33e34e0c0a8f0b8fb19267766f85b7f6f 100644 (file)
@@ -46,7 +46,7 @@ HDFgroup::HDFgroup(const char *name, HDFcontainerObject *father)
   _father->AddSon(this);
   _mid = -1;
   _attribute = NULL;
-};
+}
 
 void HDFgroup::CreateOnDisk()
 {
index e2a4443965c7057504032d02da0c803fe0752aae..7f764836fc5654a7c426fdf0c959733cfe7bba54 100644 (file)
 
 
 //===========================================================================
-    SALOMEDS_DriverDefaultImpl::SALOMEDS_DriverDefaultImpl(CORBA::ORB_ptr orb,
-                                        PortableServer::POA_ptr poa,
-                                        PortableServer::ObjectId * contId,
-                                        const char *instanceName,
-                                        const char *interfaceName
+    SALOMEDS_DriverDefaultImpl::SALOMEDS_DriverDefaultImpl(CORBA::ORB_ptr /*orb*/,
+                                        PortableServer::POA_ptr /*poa*/,
+                                        PortableServer::ObjectId * /*contId*/,
+                                        const char * /*instanceName*/,
+                                        const char * /*interfaceName*/
 //     :Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
   {
     MESSAGE("SALOMEDS_DriverDefaultImpl::SALOMEDS_DriverDefaultImpl : ");
-  };
+  }
 
 //===========================================================================
   SALOMEDS_DriverDefaultImpl::~SALOMEDS_DriverDefaultImpl()
   {
     MESSAGE("SALOMEDS_DriverDefaultImpl::~SALOMEDS_DriverDefaultImpl");
-  };
+  }
 
 //===========================================================================
-  CORBA::Boolean SALOMEDS_DriverDefaultImpl::Load(SALOMEDS::SComponent_ptr theComponent,
-                                 const SALOMEDS::TMPFile & theStream,
-                                 const char* theURL,
-                                 bool isMultiFile)
+  CORBA::Boolean SALOMEDS_DriverDefaultImpl::Load(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                 const SALOMEDS::TMPFile & /*theStream*/,
+                                 const char* /*theURL*/,
+                                 bool /*isMultiFile*/)
   {
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     return false;
-  };
+  }
 
 //===========================================================================
-  CORBA::Boolean SALOMEDS_DriverDefaultImpl::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
-                                      const SALOMEDS::TMPFile & theStream,
-                                      const char* theURL,
-                                      bool isMultiFile)
+  CORBA::Boolean SALOMEDS_DriverDefaultImpl::LoadASCII(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                      const SALOMEDS::TMPFile & /*theStream*/,
+                                      const char* /*theURL*/,
+                                      bool /*isMultiFile*/)
   {
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     return false;
-  };
+  }
 
 //===========================================================================
-  char* SALOMEDS_DriverDefaultImpl::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
-                                          const char* aLocalPersistentID,
-                                          CORBA::Boolean isMultiFile,
-                                          CORBA::Boolean isASCII)
+  char* SALOMEDS_DriverDefaultImpl::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr /*theSObject*/,
+                                          const char* /*aLocalPersistentID*/,
+                                          CORBA::Boolean /*isMultiFile*/,
+                                          CORBA::Boolean /*isASCII*/)
   {
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     CORBA::String_var aString("");
     return aString._retn();
-  };
+  }
 
 //===========================================================================
-  SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::Save(SALOMEDS::SComponent_ptr theComponent,
-                                     const char* theURL,
-                                     bool isMultiFile)
+  SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::Save(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                     const char* /*theURL*/,
+                                     bool /*isMultiFile*/)
   {
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
     return aStreamFile._retn();
-  };
+  }
 
 //===========================================================================
-  SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
-                                          const char* theURL,
-                                          bool isMultiFile)
+  SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::SaveASCII(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                          const char* /*theURL*/,
+                                          bool /*isMultiFile*/)
   {
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
     return aStreamFile._retn();
-  };
+  }
 
 //===========================================================================
-  char* SALOMEDS_DriverDefaultImpl::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
-                                          const char* IORString,
-                                          CORBA::Boolean isMultiFile,
-                                          CORBA::Boolean isASCII)
+  char* SALOMEDS_DriverDefaultImpl::IORToLocalPersistentID(SALOMEDS::SObject_ptr /*theSObject*/,
+                                          const char* /*IORString*/,
+                                          CORBA::Boolean /*isMultiFile*/,
+                                          CORBA::Boolean /*isASCII*/)
   {
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     CORBA::String_var aString("");
     return aString._retn();
-  };
+  }
 
 
 //===========================================================================
-  void SALOMEDS_DriverDefaultImpl::Close(SALOMEDS::SComponent_ptr theComponent)
+  void SALOMEDS_DriverDefaultImpl::Close(SALOMEDS::SComponent_ptr /*theComponent*/)
   {
     MESSAGE("------------------------");
     MESSAGE("SALOMEDS_DriverDefaultImpl::Close");
     MESSAGE("------------------------");
-  };
+  }
 
 //===========================================================================
   char* SALOMEDS_DriverDefaultImpl::ComponentDataType()
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     return CORBA::string_dup("J aurais du nommer mon type prefere");
-  };
+  }
 
 //===========================================================================
-  bool SALOMEDS_DriverDefaultImpl::CanPublishInStudy(CORBA::Object_ptr theIOR
+  bool SALOMEDS_DriverDefaultImpl::CanPublishInStudy(CORBA::Object_ptr /*theIOR*/
   {
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     return false;
-  };
+  }
 
 //===========================================================================
-  SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PublishInStudy(SALOMEDS::SObject_ptr theSObject,
-                                                                                          CORBA::Object_ptr     theObject,
-                                                                                          const char*           theName)
+  SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PublishInStudy(SALOMEDS::SObject_ptr /*theSObject*/,
+                                                                                          CORBA::Object_ptr    /*theObject*/,
+                                                                                          const char*          /* theName*/)
   {
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     SALOMEDS::SObject_var aResultSO;
     return aResultSO._retn();
-  };
+  }
 
 //===========================================================================
-  CORBA::Boolean SALOMEDS_DriverDefaultImpl::CanCopy(SALOMEDS::SObject_ptr theObject
+  CORBA::Boolean SALOMEDS_DriverDefaultImpl::CanCopy(SALOMEDS::SObject_ptr /*theObject*/
   {
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     //return false;
     return true;
-  };
+  }
 
 //===========================================================================
-  SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::CopyFrom(SALOMEDS::SObject_ptr theObject,
-                                            CORBA::Long& theObjectID)
+  SALOMEDS::TMPFile* SALOMEDS_DriverDefaultImpl::CopyFrom(SALOMEDS::SObject_ptr /*theObject*/,
+                                            CORBA::Long& /*theObjectID*/)
 {
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     MESSAGE("--------------------------------------");
     SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
     return aStreamFile._retn();
-};
+}
 
 //===========================================================================
-  SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PasteInto( const SALOMEDS::TMPFile & theStream,
-                                                     CORBA::Long theObjectID,
-                                                     SALOMEDS::SObject_ptr theSObject)
+  SALOMEDS::SObject_ptr SALOMEDS_DriverDefaultImpl::PasteInto( const SALOMEDS::TMPFile & /*theStream*/,
+                                                     CORBA::Long /*theObjectID*/,
+                                                     SALOMEDS::SObject_ptr /*theSObject*/)
   {
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     SALOMEDS::SObject_var aResultSO;
     return aResultSO._retn();
-  };
+  }
 
 //===========================================================================
-   CORBA::Boolean  SALOMEDS_DriverDefaultImpl::CanPaste ( const char *theComponentName,
-                                                CORBA::Long theObjectID)
+   CORBA::Boolean  SALOMEDS_DriverDefaultImpl::CanPaste ( const char * /*theComponentName*/,
+                                                CORBA::Long /*theObjectID*/)
   {
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     MESSAGE("-----------------------------------------");
     return false;
-  };
+  }
 
   
index 15ea32be23632b74d322968e1edd7927d5b8b198..58f8a1f042e53b609ade483d32409bae1b5ca3dd 100644 (file)
@@ -40,11 +40,11 @@ class KERNELHELPERS_EXPORT SALOMEDS_DriverDefaultImpl:
 
     SALOMEDS_DriverDefaultImpl();
   public:
-    SALOMEDS_DriverDefaultImpl(CORBA::ORB_ptr orb,
-             PortableServer::POA_ptr poa,
-             PortableServer::ObjectId * contId,
-             const char *instanceName,
-             const char *interfaceName);
+    SALOMEDS_DriverDefaultImpl(CORBA::ORB_ptr /*orb*/,
+             PortableServer::POA_ptr /*poa*/,
+             PortableServer::ObjectId * /*contId*/,
+             const char * /*instanceName*/,
+             const char * /*interfaceName*/);
 
 
     virtual ~SALOMEDS_DriverDefaultImpl();
@@ -54,13 +54,13 @@ class KERNELHELPERS_EXPORT SALOMEDS_DriverDefaultImpl:
     //---------------------------------------------
 
     //virtual SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent,
-     SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr theComponent,
-            const char* theURL,
-            bool isMultiFile);
+     SALOMEDS::TMPFile* Save(SALOMEDS::SComponent_ptr /*theComponent*/,
+            const char* /*theURL*/,
+            bool /*isMultiFile*/);
 
-    virtual SALOMEDS::TMPFile* SaveASCII(SALOMEDS::SComponent_ptr theComponent,
-           const char* theURL,
-           bool isMultiFile);
+    virtual SALOMEDS::TMPFile* SaveASCII(SALOMEDS::SComponent_ptr /*theComponent*/,
+           const char* /*theURL*/,
+           bool /*isMultiFile*/);
 
     virtual bool Load(SALOMEDS::SComponent_ptr,
           const SALOMEDS::TMPFile &,
@@ -72,36 +72,36 @@ class KERNELHELPERS_EXPORT SALOMEDS_DriverDefaultImpl:
          const char* theURL,
          bool isMultiFile);
 
-    virtual void Close(SALOMEDS::SComponent_ptr IORSComponent);
+    virtual void Close(SALOMEDS::SComponent_ptr /*IORSComponent*/);
 
     virtual char* ComponentDataType();
 
-    virtual char* IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
-           const char* IORString,
-           CORBA::Boolean isMultiFile,
-           CORBA::Boolean isASCII);
+    virtual char* IORToLocalPersistentID(SALOMEDS::SObject_ptr /*theSObject*/,
+           const char* /*IORString*/,
+           CORBA::Boolean /*isMultiFile*/,
+           CORBA::Boolean /*isASCII*/);
 
-    virtual char* LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
-           const char* aLocalPersistentID,
-           CORBA::Boolean isMultiFile,
-           CORBA::Boolean isASCII);
+    virtual char* LocalPersistentIDToIOR(SALOMEDS::SObject_ptr /*theSObject*/,
+           const char* /*aLocalPersistentID*/,
+           CORBA::Boolean /*isMultiFile*/,
+           CORBA::Boolean /*isASCII*/);
 
-    virtual bool CanPublishInStudy(CORBA::Object_ptr theIOR);
+    virtual bool CanPublishInStudy(CORBA::Object_ptr /*theIOR*/);
 
-    virtual SALOMEDS::SObject_ptr PublishInStudy(SALOMEDS::SObject_ptr theSObject,
-                                                 CORBA::Object_ptr     theObject,
-                                                 const char*           theName);
+    virtual SALOMEDS::SObject_ptr PublishInStudy(SALOMEDS::SObject_ptr /*theSObject*/,
+                                                 CORBA::Object_ptr     /*theObject*/,
+                                                 const char*           /*theName*/);
 
-    virtual CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr theObject);
+    virtual CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr /*theObject*/);
 
-    virtual SALOMEDS::TMPFile* CopyFrom(SALOMEDS::SObject_ptr theObject
-                                CORBA::Long& theObjectID);
+    virtual SALOMEDS::TMPFile* CopyFrom(SALOMEDS::SObject_ptr /*theObject*/
+                                CORBA::Long& /*theObjectID*/);
 
-    virtual CORBA::Boolean CanPaste(const char* theComponentName
-                            CORBA::Long theObjectID);
+    virtual CORBA::Boolean CanPaste(const char* /*theComponentName*/
+                            CORBA::Long /*theObjectID*/);
 
-    virtual SALOMEDS::SObject_ptr PasteInto(const SALOMEDS::TMPFile& theStream,
-            CORBA::Long theObjectID,
-            SALOMEDS::SObject_ptr theObject);
+    virtual SALOMEDS::SObject_ptr PasteInto(const SALOMEDS::TMPFile& /*theStream*/,
+            CORBA::Long /*theObjectID*/,
+            SALOMEDS::SObject_ptr /*theObject*/);
   };
 #endif
index 3e9648fa9e1ff37e25cbed443248ebcfe7b3ba2c..049697f81f08b27de12384cbc2db6d22e217b907 100644 (file)
@@ -127,7 +127,7 @@ SALOME::LongVec *SALOME_ExternalServerHandler::listOfChildrenPID()
   std::vector<long> pids(pyh->evalVL(oss.str()));
   std::size_t sz(pids.size());
   ret->length(sz);
-  for(auto i=0;i<sz;i++)
+  for(auto i=0;i<sz;i++) //TODO: mismatch signed/unsugned
     (*ret)[i] = pids[i];
 #endif
   return ret;
index 4fa306f24958280bb6f77acc1d753c1eee392f13..636d2c77aa371289b015ddfaccca4337a93425f0 100644 (file)
@@ -166,7 +166,7 @@ SALOME::StringVec *SALOME_ExternalServerLauncher::listServersInNS()
   std::vector<std::string> loes(ListOfExternalServersCpp(_NS));
   std::size_t sz(loes.size());
   ret->length((_CORBA_ULong)sz); //!< TODO: conversion from size_t to _CORBA_ULong
-  for(auto i = 0; i<sz ; i++)
+  for(auto i = 0; i<(int)sz ; i++) //TODO: mismatch signed/unsigned
     {
       (*ret)[i]=CORBA::string_dup(loes[i].c_str());
     }
index dbb4d4ae43441590612002061aa9acb40105cd64..17301040317f9421a3f710250c06dd5c3dfd3064 100644 (file)
@@ -48,10 +48,10 @@ void ParserLauncherType::Print() const
     "RefDirectory: " << RefDirectory << std::endl << 
     "NbOfProcesses: " << NbOfProcesses << std::endl <<
     "InputFile: ";
-  for(int i=0; i <InputFile.size();i++)
+  for(int i=0; i <(int)InputFile.size();i++) //TODO: mismatch signed/unsigned
     oss << InputFile[i] << " ";
   oss << std::endl << "OutputFile: ";
-  for(int i=0; i <OutputFile.size();i++)
+  for(int i=0; i <(int)OutputFile.size();i++) //TODO: mismatch signed/unsigned
     oss << OutputFile[i] << " ";
   oss << std::endl <<
     "Command: " << Command << std::endl <<
index 2088c5aff0ce0bd9f79e38683fefa8e430505f83..f293b35e1c1104a492cf62146f9d30c0affea87d 100644 (file)
@@ -29,7 +29,7 @@
 #include "SALOME_ModuleCatalog_Acomponent_impl.hxx"
 
 #include "Utils_ExceptHandlers.hxx"
-UNEXPECT_CATCH(MC_NotFound, SALOME_ModuleCatalog::NotFound);
+UNEXPECT_CATCH(MC_NotFound, SALOME_ModuleCatalog::NotFound)
 
 #include "utilities.h"
 
index e21cad8f74d6589fccc4611d05cec084db6786d1..ab4fc4b7b62e44508d9002090bc27d9fc0d4da58 100644 (file)
@@ -738,7 +738,7 @@ void SALOME_ModuleCatalogImpl::ShutdownWithExit()
 void SALOME_ModuleCatalogImpl::shutdown()
 {
   if (!CORBA::is_nil(_orb)) _orb->shutdown(0);
-};
+}
 
 
 
index 8ec505cbd301c3b3d8863447abaafcb062400abc..805d29d9cab7a6710ea920cb76f2ce0aec0bc46e 100644 (file)
@@ -257,8 +257,8 @@ void SALOME_NamingService::Register(CORBA::Object_ptr ObjRef,
   //     be recorded
 
   size_t sizePath = splitPath.size();
-  if (sizePath > dimension_resultat){
-    ASSERT(sizePath == dimension_resultat+1);
+  if (sizePath > (size_t)dimension_resultat){
+    ASSERT(sizePath == (size_t)dimension_resultat+1);
     context_name.length(1);
 
     try{
@@ -1177,9 +1177,9 @@ void SALOME_NamingService::Destroy_Name(const char* Path)
   //     be destroyed
 
   size_t sizePath = splitPath.size();
-  if (sizePath > dimension_resultat)
+  if (sizePath > (size_t)dimension_resultat)
     {
-      ASSERT(sizePath == dimension_resultat+1);
+      ASSERT(sizePath == (size_t)dimension_resultat+1);
       context_name.length(1);
 
       try
@@ -1512,11 +1512,11 @@ SALOME_NamingService::_createContextNameDir(std::string path,
     dim = splitPath.size();     // directories and final object
 
   context_name.length(static_cast<unsigned long>(dim));
-  for (int i=0; i<dim; i++)
+  for (int i=0; i<(int)dim; i++)
     {
 //       SCRUTE(splitPath[i]);
       context_name[i].id = CORBA::string_dup(splitPath[i].c_str());
-      if (!endWithDelim && (i == dim-1)) // here, the last string is an object
+      if (!endWithDelim && (i == (int)dim-1)) // here, the last string is an object
         {
           context_name[i].kind = CORBA::string_dup("object");
 //        MESSAGE("--- " <<splitPath[i] <<".object");
index 00961a5176d223b5f44c57a32e7b983e41181002..231298915eac05e3311b76eef8caa97ed17ab1bc 100644 (file)
@@ -63,6 +63,6 @@ namespace SALOMEDS
   // indirect recursion.
   void lock();
   void unlock();
-};
+}
 
 #endif
index c6d270da3a4bdf72fd278f4126c37197fb198f4d..4f2a720ebb9152b276cc3ed5a88dfa22507067ff 100644 (file)
@@ -41,7 +41,7 @@ std::string convertString(const std::string& S)
     return "0";
   char c[3], *buffer = new char[length*3+1];
   buffer[length*3] = (char)0;
-  for(int i = 0, pos = 0; i<length; i++, pos+=3) {
+  for(int i = 0, pos = 0; i<(int)length; i++, pos+=3) { //TODO: mismatch signed/unsigned
     int val = (int)S[i];
     buffer[pos] = '%';
     sprintf(c, "%.2x", val);
@@ -62,7 +62,7 @@ std::string restoreString(const std::string& S)
     return "";
   char c[3], *buffer = new char[length/3+1];
   buffer[length/3] = (char)0;
-  for(int i = 0, pos = 0; i<length; i+=3, pos++) {
+  for(int i = 0, pos = 0; i<(int)length; i+=3, pos++) { //TODO: mismatch signed/unsigned
     c[0] = S[i+1];
     c[1] = S[i+2];
     c[2] = (char)0;
index c59b5537a7855d3d374d260fe9925c061c56fb79..a74c2e3a2abbba1d2283d68c5707478affe91fba 100644 (file)
@@ -121,7 +121,7 @@ void SALOMEDSImpl_AttributeSequenceOfInteger::ChangeValue(const int Index,const
   CheckLocked();  
   Backup();
 
-  if(Index <= 0 || Index > myValue.size()) throw DFexception("Out of range");
+  if(Index <= 0 || Index > (int)myValue.size()) throw DFexception("Out of range"); // TODO: mismatch signed/unsigned
 
   myValue[Index-1] = Value;
   
@@ -142,7 +142,7 @@ void SALOMEDSImpl_AttributeSequenceOfInteger::Remove(const int Index)
   CheckLocked();  
   Backup();
 
-  if(Index <= 0 || Index > myValue.size()) throw DFexception("Out of range");
+  if(Index <= 0 || Index > (int)myValue.size()) throw DFexception("Out of range"); // TODO: mismatch signed/unsigned
 
   typedef std::vector<int>::iterator VI;
   int i = 1;    
@@ -162,7 +162,7 @@ int SALOMEDSImpl_AttributeSequenceOfInteger::Length()
 }
 int SALOMEDSImpl_AttributeSequenceOfInteger::Value(const int Index) 
 {
-  if(Index <= 0 || Index > myValue.size()) throw DFexception("Out of range");
+  if(Index <= 0 || Index > (int)myValue.size()) throw DFexception("Out of range"); // TODO: mismatch signed/unsigned
 
   return myValue[Index-1];
 }
index 263d72845e92618ae922804c49d848660ed4c5f1..8e9cc8c4a4e4a231b05adca3b57cc941a7098812 100644 (file)
@@ -123,7 +123,7 @@ void SALOMEDSImpl_AttributeSequenceOfReal::ChangeValue(const int Index,const dou
   CheckLocked();  
   Backup();
 
-  if(Index <= 0 || Index > myValue.size()) throw DFexception("Out of range");
+  if(Index <= 0 || Index > (int)myValue.size()) throw DFexception("Out of range"); // TODO: mismatch signed/unsigned
 
   myValue[Index-1] = Value;
   
@@ -144,7 +144,7 @@ void SALOMEDSImpl_AttributeSequenceOfReal::Remove(const int Index)
   CheckLocked();  
   Backup();
 
-  if(Index <= 0 || Index > myValue.size()) throw DFexception("Out of range");
+  if(Index <= 0 || Index > (int)myValue.size()) throw DFexception("Out of range"); // TODO: mismatch signed/unsigned
 
   typedef std::vector<double>::iterator VI;
   int i = 1;    
@@ -165,7 +165,7 @@ int SALOMEDSImpl_AttributeSequenceOfReal::Length()
 
 double SALOMEDSImpl_AttributeSequenceOfReal::Value(const int Index) 
 {
-  if(Index <= 0 || Index > myValue.size()) throw DFexception("Out of range");
+  if(Index <= 0 || Index > (int)myValue.size()) throw DFexception("Out of range"); // TODO: mismatch signed/unsigned
   return myValue[Index-1];
 }
 
index 9703eedddf05dc02712f80c4faed22bcb0fadaef..d84a59bd9ce529b704f6e0214c6d4cafeca2519e 100644 (file)
@@ -224,7 +224,7 @@ void SALOMEDSImpl_AttributeStudyProperties::Paste(DF_Attribute* into)
   aProp->Init();
 
   int i;
-  for(i = 0; i < myUserName.size(); i++) {
+  for(i = 0; i < (int)myUserName.size(); i++) {  //TODO: mismatch signed/unsigned
     aProp->SetModification(myUserName[i],
                            myMinute[i], myHour[i],
                            myDay[i], myMonth[i], myYear[i]);
@@ -243,7 +243,7 @@ std::string SALOMEDSImpl_AttributeStudyProperties::Save()
   std::vector<int> aMinutes, aHours, aDays, aMonths, aYears;
   GetModifications(aNames, aMinutes, aHours, aDays, aMonths, aYears);
 
-  size_t aLength, anIndex, unitsSize = 0, commentSize = 0;;
+  int aLength, anIndex, unitsSize = 0, commentSize = 0;;
   for (aLength = 0, anIndex = aNames.size()-1; anIndex >= 0; anIndex--)
     aLength += aNames[anIndex].size() + 1;
 
@@ -416,7 +416,7 @@ void SALOMEDSImpl_AttributeStudyProperties::Load(const std::string& value)
   // - yyyy: year   = 4 bytes
   // - name: user's name = arbitrary value, minimal length is 0 bytes
   // - 1   : records delimiter = 1 byte  
-  for (anIndex = 2; anIndex + 13 < value.size() ;) {
+  for (anIndex = 2; anIndex + 13 < (int)value.size() ;) {  //TODO: mismatch signed/unsigned
     char str[10];
     int aMinute, aHour, aDay, aMonth, aYear;
     str[0] = aCopy[anIndex++];
@@ -449,12 +449,12 @@ void SALOMEDSImpl_AttributeStudyProperties::Load(const std::string& value)
     anIndex += aNameSize + 1;
     
     //Check end of the modifications section
-    if(anIndex < value.size() && aCopy[anIndex] == 30)
+    if(anIndex < (int)value.size() && aCopy[anIndex] == 30) //TODO: mismatch signed/unsigned
       break;
   }
   
   //Case when study contains units and comment properties
-  if( anIndex < value.size() ) {
+  if( anIndex < (int)value.size() ) {   //TODO: mismatch signed/unsigned
     anIndex++; //skip the delimiter of the sections: char(30)
     int unitsSize;
     for(unitsSize = 0; aCopy[anIndex+unitsSize] != 1; unitsSize++);
@@ -482,8 +482,8 @@ void SALOMEDSImpl_AttributeStudyProperties::Load(const std::string& value)
   }
 
   //Case when study contains components versions
-  if( anIndex < value.size() ) {
-    while ( anIndex < value.size() && aCopy[anIndex] != 0 ) {
+  if( anIndex < (int)value.size() ) { //TODO: mismatch signed/unsigned
+    while ( anIndex < (int)value.size() && aCopy[anIndex] != 0 ) { //TODO: mismatch signed/unsigned
       int modSize;
       for(modSize = 0; aCopy[anIndex+modSize] != '='; modSize++);
       int verSize;
index f4e40606842a2cc3fc6c0a13db34e2af890a4aac..a98a09e3124a9c7fc91f0ba3c8230ddc3a16ca24 100644 (file)
@@ -92,7 +92,7 @@ void SALOMEDSImpl_AttributeTableOfInteger::SetNbColumns(const int theNbColumns)
 
   myNbColumns = theNbColumns;
 
-  while (myCols.size() < myNbColumns) { // append empty columns titles
+  while ((int)myCols.size() < myNbColumns) { // append empty columns titles // TODO: mismatch signed/unsigned
     myCols.push_back(std::string(""));
   }
 
@@ -117,11 +117,11 @@ void SALOMEDSImpl_AttributeTableOfInteger::SetRowData(const int theRow,
                                                       const std::vector<int>& theData) 
 {
   CheckLocked();  
-  if(theData.size() > myNbColumns) SetNbColumns((int)theData.size()); //!< TODO: conversion from size_t to const int, possible loss of data
+  if((int)theData.size() > myNbColumns) SetNbColumns((int)theData.size()); //!< TODO: conversion from size_t to const int, possible loss of data
 
   Backup();
 
-  while (myRows.size() < theRow) { // append new row titles
+  while ((int)myRows.size() < theRow) { // append new row titles  // TODO: mismatch signed/unsigned
     myRows.push_back(std::string(""));
   }
 
@@ -180,7 +180,7 @@ void SALOMEDSImpl_AttributeTableOfInteger::SetRowUnit(const int theRow,
 
 void SALOMEDSImpl_AttributeTableOfInteger::SetRowUnits(const std::vector<std::string>& theUnits)
 {
-  if (theUnits.size() != GetNbRows()) throw DFexception("Invalid number of rows");
+  if ((int)theUnits.size() != GetNbRows()) throw DFexception("Invalid number of rows"); // TODO: mismatch signed/unsigned
   size_t aLength = theUnits.size(), i;
   for(i = 1; i <= aLength; i++) SetRowUnit((int)i, theUnits[i-1]);  //!< TODO: conversion from size_t to int
   
@@ -197,7 +197,7 @@ std::vector<std::string> SALOMEDSImpl_AttributeTableOfInteger::GetRowUnits()
 
 void SALOMEDSImpl_AttributeTableOfInteger::SetRowTitles(const std::vector<std::string>& theTitles)
 {
-  if (theTitles.size() != GetNbRows()) throw DFexception("Invalid number of rows");
+  if ((int)theTitles.size() != GetNbRows()) throw DFexception("Invalid number of rows"); //TODO: mismatch signed/unsigned
   size_t aLength = theTitles.size(), i;
   for(i = 1; i <= aLength; i++) SetRowTitle((int)i, theTitles[i-1]); //!< TODO: conversion from size_t to int
   
@@ -449,7 +449,7 @@ std::string SALOMEDSImpl_AttributeTableOfInteger::Save()
 
   //Title
   l = myTitle.size();
-  sprintf(buffer, "%Iu\n", l);
+  sprintf(buffer, "%u\n", l);
   aString+=buffer;
   for(i=0; i<l; i++) {
     aString += myTitle[i];
@@ -463,7 +463,7 @@ std::string SALOMEDSImpl_AttributeTableOfInteger::Save()
   //Row titles
   for(i=0; i<myNbRows; i++) {
     l = myRows[i].size();
-    sprintf(buffer, "%Iu\n", l);
+    sprintf(buffer, "%u\n", l);
     aString+=buffer;
     for(j=0; j<l; j++) {
       aString += myRows[i][j];
@@ -478,7 +478,7 @@ std::string SALOMEDSImpl_AttributeTableOfInteger::Save()
   //Columns titles
   for(i=0; i<myNbColumns; i++) {
     l = myCols[i].size();
-    sprintf(buffer, "%Iu\n", l);
+    sprintf(buffer, "%u\n", l);
     aString+=buffer;
     for(j=0; j<l; j++) {
       aString += myCols[i][j];
@@ -488,7 +488,7 @@ std::string SALOMEDSImpl_AttributeTableOfInteger::Save()
 
   //Store the table values
   l = myTable.size();
-  sprintf(buffer, "%Iu\n", l);
+  sprintf(buffer, "%u\n", l);
   aString+=buffer;
   for(MI p = myTable.begin(); p != myTable.end(); p++) {
     sprintf(buffer, "%d\n%d\n", p->first, p->second);
index 229394e6a42be47f560b1a33058a99e353cfc9e2..5ba44468d31fe0ecf94101e4a5dac3de89ba1a07 100644 (file)
@@ -447,7 +447,7 @@ std::string SALOMEDSImpl_AttributeTableOfReal::Save()
 
   //Title
   l = myTitle.size();
-  sprintf(buffer, "%Iu\n", l);
+  sprintf(buffer, "%zu\n", l);
   aString+=buffer;
   for(i=0; i<l; i++) {
     aString += myTitle[i];
@@ -461,7 +461,7 @@ std::string SALOMEDSImpl_AttributeTableOfReal::Save()
   //Row titles
   for(i=0; i<myNbRows; i++) {
     l = myRows[i].size();
-    sprintf(buffer, "%Iu\n", l);
+    sprintf(buffer, "%u\n", l);
     aString+=buffer;
     for(j=0; j<l; j++) {
       aString += myRows[i][j];
@@ -476,7 +476,7 @@ std::string SALOMEDSImpl_AttributeTableOfReal::Save()
   //Columns titles
   for(i=0; i<myNbColumns; i++) {
     l = myCols[i].size();
-    sprintf(buffer, "%Iu\n", l);
+    sprintf(buffer, "%u\n", l);
     aString+=buffer;
     for(j=0; j<l; j++) {
       aString += myCols[i][j];
@@ -486,7 +486,7 @@ std::string SALOMEDSImpl_AttributeTableOfReal::Save()
 
   //Store the table values
   l = myTable.size();
-  sprintf(buffer, "%Iu\n", l);
+  sprintf(buffer, "%u\n", l);
   aString+=buffer;
   for(MI p = myTable.begin(); p != myTable.end(); p++) {
     sprintf(buffer, "%d\n%.64e\n", p->first, p->second);
index 269d8614da3d18744ae9f813a59e23fdfdfe31a2..7808991e50190267f5e8ec35db428b4456bb526d 100644 (file)
@@ -460,7 +460,7 @@ std::string SALOMEDSImpl_AttributeTableOfString::Save()
   //Row titles
   for(i=0; i<myNbRows; i++) {
     l = myRows[i].size();
-    sprintf(buffer, "%Iu\n", l);
+    sprintf(buffer, "%u\n", l);
     aString+=buffer;
     for(j=0; j<l; j++) {
       aString += myRows[i][j];
@@ -475,7 +475,7 @@ std::string SALOMEDSImpl_AttributeTableOfString::Save()
   //Columns titles
   for(i=0; i<myNbColumns; i++) {
     l = myCols[i].size();
-    sprintf(buffer, "%Iu\n", l);
+    sprintf(buffer, "%u\n", l);
     aString+=buffer;
     for(j=0; j<l; j++) {
       aString += myCols[i][j];
@@ -485,7 +485,7 @@ std::string SALOMEDSImpl_AttributeTableOfString::Save()
 
   //Store the table values
   l = myTable.size();
-  sprintf(buffer, "%Iu\n", l);
+  sprintf(buffer, "%u\n", l);
   aString+=buffer;
   for(MI p = myTable.begin(); p!=myTable.end(); p++) {
     if (p->second.size()) { // check empty string in the value table
@@ -601,12 +601,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfString::SortRow(const int theRow,
     }
     result = indices;
 
-    for ( int col = 0; col < indices.size(); col++ ) {
+    for ( int col = 0; col < (int)indices.size(); col++ ) {  //TODO: mismatch signed/unsigned
       int idx = indices[col];
       if ( col+1 == idx ) continue;
       SwapCells(theRow, col+1, theRow, idx);
       int idx1 = 0;
-      for ( int i = col+1; i < indices.size() && idx1 == 0; i++)
+      for ( int i = col+1; i < (int)indices.size() && idx1 == 0; i++) //TODO: mismatch signed/unsigned
        if ( indices[i] == col+1 ) idx1 = i;
       indices[idx1] = idx;
     }
@@ -641,12 +641,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfString::SortColumn(const int theCo
     }
     result = indices;
 
-    for ( int row = 0; row < indices.size(); row++ ) {
+    for ( int row = 0; row < (int)indices.size(); row++ ) {  //TODO: mismatch signed/unsigned
       int idx = indices[row];
       if ( row+1 == idx ) continue;
       SwapCells(row+1, theColumn, idx, theColumn);
       int idx1 = 0;
-      for ( int i = row+1; i < indices.size() && idx1 == 0; i++)
+      for ( int i = row+1; i < (int)indices.size() && idx1 == 0; i++) //TODO: mismathc signed/unsigned
        if ( indices[i] == row+1 ) idx1 = i;
       indices[idx1] = idx;
     }
@@ -681,12 +681,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfString::SortByRow(const int theRow
     }
     result = indices;
 
-    for ( int col = 0; col < indices.size(); col++ ) {
+    for ( int col = 0; col < (int)indices.size(); col++ ) { //TODO: mismatch signed/unsigned
       int idx = indices[col];
       if ( col+1 == idx ) continue;
       SwapColumns(col+1, idx);
       int idx1 = 0;
-      for ( int i = col+1; i < indices.size() && idx1 == 0; i++)
+      for ( int i = col+1; i < (int)indices.size() && idx1 == 0; i++) //TODO: mismatch signed/unsigned
        if ( indices[i] == col+1 ) idx1 = i;
       indices[idx1] = idx;
     }
@@ -721,12 +721,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfString::SortByColumn(const int the
     }
     result = indices;
 
-    for ( int row = 0; row < indices.size(); row++ ) {
+    for ( int row = 0; row < (int)indices.size(); row++ ) { //TODO: mismatch signed/unsigned
       int idx = indices[row];
       if ( row+1 == idx ) continue;
       SwapRows(row+1, idx);
       int idx1 = 0;
-      for ( int i = row+1; i < indices.size() && idx1 == 0; i++)
+      for ( int i = row+1; i < (int)indices.size() && idx1 == 0; i++) //TODO: mismatch signed/unsigned
        if ( indices[i] == row+1 ) idx1 = i;
       indices[idx1] = idx;
     }
index e0cb0ee0922aaf502a0714267b70441fbe4b089a..fb2594f5a4c2418710ab08c64103a64ee929649f 100644 (file)
@@ -57,11 +57,11 @@ public:
 class SALOMEDSIMPL_EXPORT SALOMEDSImpl_AbstractCallback
 {
 public:
-  virtual bool addSO_Notification(const SALOMEDSImpl_SObject& theSObject){return false;};
-  virtual bool removeSO_Notification(const SALOMEDSImpl_SObject& theSObject){return false;};
-  virtual bool modifySO_Notification(const SALOMEDSImpl_SObject& theSObject, int reason ){return false;};
-  virtual bool modifyNB_Notification(const char* theVarName){return false;};
-  virtual void RegisterGenObj  (const std::string& theIOR) {}
-  virtual void UnRegisterGenObj(const std::string& theIOR) {}
+  virtual bool addSO_Notification(const SALOMEDSImpl_SObject& /*theSObject*/){return false;}
+  virtual bool removeSO_Notification(const SALOMEDSImpl_SObject& /*theSObject*/){return false;}
+  virtual bool modifySO_Notification(const SALOMEDSImpl_SObject& /*theSObject*/, int /*reason*/ ){return false;}
+  virtual bool modifyNB_Notification(const char* /*theVarName*/){return false;}
+  virtual void RegisterGenObj  (const std::string& /*theIOR*/) {}
+  virtual void UnRegisterGenObj(const std::string& /*theIOR*/) {}
 };
 #endif
index d9f9d8cea9fc411b679de7c3bd8a432bd2134b3e..6390249c56c425f8751a91710b08d12e1fc3aabe 100644 (file)
@@ -439,7 +439,7 @@ bool SALOMEDSImpl_StudyBuilder::LoadWith(const SALOMEDSImpl_SComponent& anSCO,
  *  Purpose  : 
  */
 //============================================================================
-bool SALOMEDSImpl_StudyBuilder::Load(const SALOMEDSImpl_SObject& sco)
+bool SALOMEDSImpl_StudyBuilder::Load(const SALOMEDSImpl_SObject& /*sco*/)
 {
   _errorCode = "Not implemented";
   return false;
@@ -802,7 +802,7 @@ int  SALOMEDSImpl_StudyBuilder::UndoLimit()
  *  Purpose  : 
  */
 //============================================================================
-void SALOMEDSImpl_StudyBuilder::UndoLimit(int n)
+void SALOMEDSImpl_StudyBuilder::UndoLimit(int /*n*/)
 {
   _errorCode = "";
   CheckLocked();
index c1d0305889c215eaa4701d718d29a5346bb56301..39f4f2b249fc95c0b27d4649b49a4ec4afbfdb1b 100644 (file)
@@ -118,7 +118,7 @@ void SALOMEDSImpl_Tool::RemoveTemporaryFiles(const std::string& theDirectory,
 //============================================================================
 std::string SALOMEDSImpl_Tool::GetNameFromPath(const std::string& thePath) {
   if (thePath.empty()) return "";
-  size_t pos = thePath.rfind('/');
+  int pos = (int)thePath.rfind('/'); //TODO: conversion from size_t to int
   if(pos >= 0) return thePath.substr(pos+1, thePath.size());
   pos = thePath.rfind('\\'); 
   if(pos >= 0) return thePath.substr(pos+1, thePath.size()); 
@@ -140,7 +140,7 @@ std::string SALOMEDSImpl_Tool::GetDirFromPath(const std::string& thePath) {
 
   std::string path;
   if (!thePath.empty()) {
-    size_t pos = thePath.rfind('/');
+    int pos = (int)thePath.rfind('/'); //TODO: conversion from size_t to int
     if (pos < 0) pos = thePath.rfind('\\');
     if (pos < 0) pos = thePath.rfind('|');
     
@@ -169,7 +169,7 @@ std::vector<std::string> SALOMEDSImpl_Tool::splitString(const std::string& theVa
 {
   std::vector<std::string> vs;
   if(theValue[0] == separator && theValue.size() == 1) return vs;
-  size_t pos = theValue.find(separator);
+  int pos = (int)theValue.find(separator); //TODO: conversion from size_t to int
   if(pos < 0) {
     vs.push_back(theValue);
     return vs;
@@ -197,7 +197,7 @@ std::vector<std::string> treatRepetation(const std::string& theValue);
 std::vector<std::string> treatRepetation(const std::string& theValue)
 {
   std::vector<std::string> aResult;
-  size_t pos = theValue.find(";*=");
+  int pos = (int)theValue.find(";*="); //TODO: conversion from size_t to int
   if(pos < 0 )
     {
       aResult.push_back(theValue);
@@ -217,7 +217,7 @@ std::vector<std::string> SALOMEDSImpl_Tool::splitStringWithEmpty(const std::stri
 {
   std::vector<std::string> aResult;
   if(theValue[0] == sep ) aResult.push_back(std::string());
-  size_t pos = theValue.find(sep);
+  int pos = (int)theValue.find(sep); //TODO: conversion from size_t to int
   if(pos < 0 ) {
     if(sep == '|')
       {
index e312e17569932c62b79f314cda839747a92bcce8..e6fb81b2859b3af99284834495625d96d8ea711e 100644 (file)
@@ -36,7 +36,7 @@ PickelizedPyObjRdOnlyServer::~PickelizedPyObjRdOnlyServer()
 {
 }
 
-void PickelizedPyObjRdOnlyServer::addKeyValueErrorIfAlreadyExisting(PyObject *key, PyObject *value)
+void PickelizedPyObjRdOnlyServer::addKeyValueErrorIfAlreadyExisting(PyObject * /*key*/, PyObject * /*value*/)
 {
   throw Exception("PickelizedPyObjRdOnlyServer::addKeyValueErrorIfAlreadyExisting : incompatible with RdOnly !");
 }
index 7e4fa77c6b13ed6c932425c17adafe4d88d7562c..83fc25c1742c6eec7a5b2eeb9a89aae9622160d0 100644 (file)
@@ -70,13 +70,13 @@ void PickelizedPyObjServer::checkKeyPresent(PyObject *key)
   checkKeyPresence(key,true);
 }
 
-void PickelizedPyObjServer::addKeyValueHard(PyObject *key, PyObject *value)
+void PickelizedPyObjServer::addKeyValueHard(PyObject * /*key*/, PyObject * /*value*/)
 {
   std::ostringstream oss; oss << "PickelizedPyObjServer::addKeyValueHard : var \"" << getVarNameCpp() << "\" is not permitted to alter its value !";
   throw Exception(oss.str());
 }
 
-void PickelizedPyObjServer::removeKeyInVarErrorIfNotAlreadyExisting(PyObject *key)
+void PickelizedPyObjServer::removeKeyInVarErrorIfNotAlreadyExisting(PyObject * /*key*/)
 {
   std::ostringstream oss; oss << "PickelizedPyObjServer::removeKeyInVarErrorIfNotAlreadyExisting : var \"" << getVarNameCpp() << "\" is not permitted to alter its value !";
   throw Exception(oss.str());
index 7a7c72186ba42da644fad0472e709a5d8b2cb654..5078790bd1795e81542a09f92ea8d2d09a498de5 100644 (file)
@@ -43,7 +43,7 @@ RefCountServ::RefCountServ():_cnt(1)
 {
 }
 
-RefCountServ::RefCountServ(const RefCountServ& other):_cnt(1)
+RefCountServ::RefCountServ(const RefCountServ& /*other*/):_cnt(1)
 {
 }
 
index 038b1e2003297048346daced8c003810d1b2bd96..1045578a5e689e60a13ddc0fcc1527d8a386b27b 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <sstream>
 
-void SALOMESDS::Sha1Keeper::checkSame(const std::string& varName,const std::string& compareFuncContent, PyObject *oldObj, PyObject *newObj)
+void SALOMESDS::Sha1Keeper::checkSame(const std::string& /*varName*/,const std::string& compareFuncContent, PyObject *oldObj, PyObject *newObj)
 {
   if(compareFuncContent!=_cmp_func_content)
     {
index 8fc3c3cf322b2d3aa5d3c637eefe898bc51f6140..1fc1a0c90621bc83a68e5ff1a46e7233ede1db36 100644 (file)
@@ -90,7 +90,7 @@ UtilsTest::tearDown()
 int genExcept()
 {
   throw SALOME_Exception("a message");
-};
+}
 
 // ============================================================================
 /*!