]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
fight warnings, fix minor warnings. Build KERNEL finished
authorSALOME <salome@opencascade.com>
Mon, 24 Aug 2020 11:28:14 +0000 (14:28 +0300)
committerSALOME <salome@opencascade.com>
Mon, 24 Aug 2020 11:28:14 +0000 (14:28 +0300)
30 files changed:
src/Container/Salome_file_i.cxx
src/DSC/DSC_Basic/PortProperties_i.cxx
src/DSC/DSC_Basic/PortProperties_i.hxx
src/DSC/DSC_User/Basic/data_short_port_uses.cxx
src/DSC/DSC_User/Basic/data_short_port_uses.hxx
src/DSC/DSC_User/Datastream/Calcium/CalciumC.c
src/DSC/DSC_User/Datastream/Calcium/CalciumCInterface.cxx
src/DSC/DSC_User/Datastream/Calcium/CalciumMacroCInterface.hxx
src/DSC/DSC_User/Datastream/Calcium/CalciumTypes.hxx
src/DSC/DSC_User/Datastream/Calcium/Copy2UserSpace.hxx
src/DSC/DSC_User/Datastream/Calcium/calciumf.h
src/DSC/DSC_User/Datastream/GenericUsesPort.hxx
src/DSC/DSC_User/Datastream/Palm/test_DataIdContainer.cxx
src/DSC/DSC_User/test_DSC_Exception.cxx
src/HDFPersist/HDFascii.cc
src/Launcher/Launcher.cxx
src/NamingService/Test/NamingServiceTest.cxx
src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx
src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx
src/SALOMEDS/SALOMEDS_IParameters.cxx
src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
src/SALOMEDS/SALOMEDS_Study_i.cxx
src/SALOMEDS/SALOMEDS_Study_i.hxx
src/SALOMEDS/Test/SALOMEDSTest_AttributeSequenceOfInteger.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTableOfInteger.cxx
src/SALOMEDSImpl/SALOMEDSImpl_IParameters.cxx
src/SALOMEDSImpl/testDS.cxx

index 9e70202aa9420b4763affe094286081dddad30af..0a53e8069c9a9ae046a8625694b831f7f0a08d81 100644 (file)
@@ -502,7 +502,7 @@ Salome_file_i::setLocalFile(const char* comp_file_name)
 
   std::string cp_file_name(comp_file_name);
   std::size_t index = cp_file_name.rfind("/");
-  if (index != -1)
+  if (index != -1) //TODO: std::string::npos
   {
     file_name = cp_file_name.substr(index+1);
     path =  cp_file_name.substr(0,index+1);
@@ -564,7 +564,7 @@ Salome_file_i::setDistributedFile(const char* comp_file_name)
 
   std::string cp_file_name(comp_file_name);
   std::size_t index = cp_file_name.rfind("/");
-  if (index != -1)
+  if (index != -1) //TODO: std::string::npos
   {
     file_name = cp_file_name.substr(index+1);
     path =  cp_file_name.substr(0,index+1);
index 5d6aa2529ddbf6600f7e5e97283281a24d6c4ec8..9f18fb6842e0efb11babcc8d81e6c99863ded2e2 100644 (file)
@@ -31,7 +31,7 @@ PortProperties_i::PortProperties_i() {}
 PortProperties_i::~PortProperties_i() {}
 
 void
-PortProperties_i::set_property(const char * name, const CORBA::Any& value)
+PortProperties_i::set_property(const char * /*name*/, const CORBA::Any& /*value*/)
 noexcept
 {
   // Default case, the object has no properties.
@@ -39,7 +39,7 @@ noexcept
 }
 
 CORBA::Any* 
-PortProperties_i::get_property(const char* name)
+PortProperties_i::get_property(const char* /*name*/)
 noexcept
 {
   // Default case, the object has no properties.
index d519a58107c48668b50294a84cd6b551736e2289..778b2168651fb452472719ea31de9eeccd9f0807 100644 (file)
@@ -46,15 +46,15 @@ class DSC_BASIC_EXPORT PortProperties_i:
      * CORBA method : set a value to a property
      * \see Ports::PortProperties::set_property
      */
-    virtual void set_property(const char * name,
-                              const CORBA::Any& value)
+    virtual void set_property(const char * /*name*/,
+                              const CORBA::Any& /*value*/)
                noexcept;
 
     /*!
      * CORBA method : get the value of a property
      * \see Ports::PortProperties::get_property
      */
-    virtual CORBA::Any* get_property(const char* name)
+    virtual CORBA::Any* get_property(const char* /*name*/)
                noexcept;
 };
 
index f3e9b72038d04f50a9ac8cbf7d31947ff5eaa259..159acf3605d8aa8a5f7b4b398b5caaf077560768 100644 (file)
@@ -46,7 +46,7 @@ data_short_port_uses::put(CORBA::Short data) {
     std::cerr << "data_short_port_uses::put is NULL" << std::endl;
   else
   {
-    for(int i = 0; i < _my_ports->length(); i++)
+    for(int i = 0; i < (int)_my_ports->length(); i++) //TODO: mismatch signed/unsigned
     {
       Ports::Data_Short_Port_ptr port = Ports::Data_Short_Port::_narrow((*_my_ports)[i]);
       port->put(data);
@@ -56,7 +56,7 @@ data_short_port_uses::put(CORBA::Short data) {
 
 void 
 data_short_port_uses::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 21a927f3074c4629e816d4c2f342006f72de6fc0..cafcddff20a0c1be688ac711f7444643a0ef33be 100644 (file)
@@ -65,7 +65,7 @@ class data_short_port_uses :
      * \param message message associated to the modification.
      */
     virtual void uses_port_changed(Engines::DSC::uses_port * new_uses_port,
-                                   const Engines::DSC::Message message);
+                                   const Engines::DSC::Message /*message*/);
 
   private :
     Engines::DSC::uses_port * _my_ports;
index 4041719703ebc57e2e9ad3524dea0964c056d8e1..72f09ae8f86d0c39e554fd9ec262ab49d1b088c7 100644 (file)
@@ -80,10 +80,10 @@ InfoType ecp_effi_ (void * component, char* nomVar, int i);
     /*    std::cerr << "-------- CalciumInterface(C Part) MARK 3 ------------------" << std::endl; */ \
                                                                         \
     return info;                                                        \
-  };                                                                    \
+  }                                                                    \
   void ecp_##_name##_free ( _type _qual * data) {                       \
     ecp_lecture_##_typeName##_free(data);                               \
-  };
+  }
 
 
 /* L'interface de cette routine diffère de celle obtenue par la macro :
@@ -109,23 +109,23 @@ InfoType ecp_lch(void * component, int mode, float * ti,        float * tf, int
   *nRead=_nRead;
   fflush(stdout);fflush(stderr);
   return info;
-};
+}
 
 void ecp_lch_free (char* * data) {                              \
   ecp_lecture_str_free(data);                                   \
-};
+}
 
 
 #define STAR *
 /*REVERIFIER MAINTENANT 0 COPY avec int2integer*/
-CALCIUM_EXT_LECT_INTERFACE_C_(len,float,int,int2integer,);
-CALCIUM_EXT_LECT_INTERFACE_C_(lre,float,float,float,);
+CALCIUM_EXT_LECT_INTERFACE_C_(len,float,int,int2integer,)
+CALCIUM_EXT_LECT_INTERFACE_C_(lre,float,float,float,)
 /*Permet d'envoyer/recevoir des réels sur un port Double  */
-CALCIUM_EXT_LECT_INTERFACE_C_(lrd,float ,float  ,float2double,);
-CALCIUM_EXT_LECT_INTERFACE_C_(ldb,double,double,double,);
+CALCIUM_EXT_LECT_INTERFACE_C_(lrd,float ,float  ,float2double,)
+CALCIUM_EXT_LECT_INTERFACE_C_(ldb,double,double,double,)
 
-CALCIUM_EXT_LECT_INTERFACE_C_(llo,float,int,bool,);
-CALCIUM_EXT_LECT_INTERFACE_C_(lcp,float,float,cplx,);
+CALCIUM_EXT_LECT_INTERFACE_C_(llo,float,int,bool,)
+CALCIUM_EXT_LECT_INTERFACE_C_(lcp,float,float,cplx,)
 /* CALCIUM_EXT_LECT_INTERFACE_C_(lch,float,char,STAR[]);  */
 
 
@@ -160,10 +160,10 @@ CALCIUM_EXT_LECT_INTERFACE_C_(lcp,float,float,cplx,);
     fflush(stderr);                                                     \
                                                                         \
     return info;                                                        \
-  };                                                                    \
+  }                                                                    \
   void cp_##_name##_free ( _type _qual * data) {                        \
     ecp_lecture_##_typeName##_free(data);                               \
-  };
+  }
 
 
 /* L'interface de cette routine diffère de celle obtenue par la macro :
@@ -200,42 +200,42 @@ CALCIUM_EXT_LECT_INTERFACE_C_(lcp,float,float,cplx,);
 /* CALCIUM_LECT_INTERFACE_C_( <suffixe du nom de l'interface à générer>, <type du paramètre temporel>, <type d'entier à utiliser pour les paramètres de type entier>,
                               <type de données>, <nom de l'interface C2CPP à utiliser>, <qualificateur de type optionnel des données>,<paramètres supplémentaire ignoré>)*/
 
-CALCIUM_LECT_INTERFACE_C_(len,float ,int,int    ,int2integer,,);
+CALCIUM_LECT_INTERFACE_C_(len,float ,int,int    ,int2integer,,)
 /*llg ne fonctionnera pas toujours correctement (port calcium_integer) si sizeof(long) == 64 bits && cal_int==int (32 bits)
   sinon problème de conversion de 64bits vers 32bits */
-CALCIUM_LECT_INTERFACE_C_(llg,float ,int,long   ,long2integer,,);
+CALCIUM_LECT_INTERFACE_C_(llg,float ,int,long   ,long2integer,,)
 
-CALCIUM_LECT_INTERFACE_C_(lln,float ,int,long   ,long,,);
+CALCIUM_LECT_INTERFACE_C_(lln,float ,int,long   ,long,,)
 
-CALCIUM_LECT_INTERFACE_C_(lre,float ,int,float  ,float,,);
+CALCIUM_LECT_INTERFACE_C_(lre,float ,int,float  ,float,,)
 /*Permet d'envoyer/recevoir des réels sur un port Double  */
-CALCIUM_LECT_INTERFACE_C_(lrd,float ,int,float  ,float2double,,);
-CALCIUM_LECT_INTERFACE_C_(ldb,double,int,double ,double,,);
+CALCIUM_LECT_INTERFACE_C_(lrd,float ,int,float  ,float2double,,)
+CALCIUM_LECT_INTERFACE_C_(ldb,double,int,double ,double,,)
 
-CALCIUM_LECT_INTERFACE_C_(llo,float ,int,int    ,bool,,);
-CALCIUM_LECT_INTERFACE_C_(lcp,float ,int,float  ,cplx,,);
+CALCIUM_LECT_INTERFACE_C_(llo,float ,int,int    ,bool,,)
+CALCIUM_LECT_INTERFACE_C_(lcp,float ,int,float  ,cplx,,)
 #define STAR *
 #define LCH_LAST_PARAM ,int strsize
-CALCIUM_LECT_INTERFACE_C_(lch,float ,int,char   ,str,STAR, LCH_LAST_PARAM );
+CALCIUM_LECT_INTERFACE_C_(lch,float ,int,char   ,str,STAR, LCH_LAST_PARAM )
 
 
 /* Definition des méthodes calcium destinées à l'interfaçage fortran
    avec une taille des INTEGER fortran paramétrés à la configuration du KERNEL  */
 
-CALCIUM_LECT_INTERFACE_C_(len_fort_,float ,cal_int,cal_int ,integer,,);
-CALCIUM_LECT_INTERFACE_C_(lin_fort_,float ,cal_int,int     ,int2integer,,);
+CALCIUM_LECT_INTERFACE_C_(len_fort_,float ,cal_int,cal_int ,integer,,)
+CALCIUM_LECT_INTERFACE_C_(lin_fort_,float ,cal_int,int     ,int2integer,,)
 /*llg_fort_ ne fonctionnera pas toujours correctement (port calcium_integer) si sizeof(long) == 64 bits && cal_int==int (32 bits)
   sinon problème de conversion de 64bits vers 32bits */
-CALCIUM_LECT_INTERFACE_C_(llg_fort_,float ,cal_int,long    ,long2integer,,);
+CALCIUM_LECT_INTERFACE_C_(llg_fort_,float ,cal_int,long    ,long2integer,,)
 
-CALCIUM_LECT_INTERFACE_C_(lre_fort_,float ,cal_int,float   ,float,,);
-CALCIUM_LECT_INTERFACE_C_(lrd_fort_,float ,cal_int,float   ,float2double,,);
-CALCIUM_LECT_INTERFACE_C_(ldb_fort_,double,cal_int,double  ,double,,);
-CALCIUM_LECT_INTERFACE_C_(llo_fort_,float ,cal_int,int     ,bool,,);   /*int pour bool ou cal_int */
-CALCIUM_LECT_INTERFACE_C_(lcp_fort_,float ,cal_int,float   ,cplx,,);
-CALCIUM_LECT_INTERFACE_C_(lch_fort_,float ,cal_int,char    ,str,STAR, LCH_LAST_PARAM );
+CALCIUM_LECT_INTERFACE_C_(lre_fort_,float ,cal_int,float   ,float,,)
+CALCIUM_LECT_INTERFACE_C_(lrd_fort_,float ,cal_int,float   ,float2double,,)
+CALCIUM_LECT_INTERFACE_C_(ldb_fort_,double,cal_int,double  ,double,,)
+CALCIUM_LECT_INTERFACE_C_(llo_fort_,float ,cal_int,int     ,bool,,)   /*int pour bool ou cal_int */
+CALCIUM_LECT_INTERFACE_C_(lcp_fort_,float ,cal_int,float   ,cplx,,)
+CALCIUM_LECT_INTERFACE_C_(lch_fort_,float ,cal_int,char    ,str,STAR, LCH_LAST_PARAM )
 
-CALCIUM_LECT_INTERFACE_C_(lln_fort_,float ,cal_int,long    ,long,,);
+CALCIUM_LECT_INTERFACE_C_(lln_fort_,float ,cal_int,long    ,long,,)
 
 /**********************************************/
 /*  INTERFACES DE DÉBUT ET DE FIN DE COUPLAGE */
@@ -281,7 +281,7 @@ InfoType cp_fin (void * component, int code) {
     fflush(stderr);                                                     \
                                                                         \
     return info;                                                        \
-  };                                                                    \
+  }                                                                    \
 
 
 
@@ -308,37 +308,37 @@ InfoType cp_fin (void * component, int code) {
 
 /*  Definition des méthodes calcium standard  */
 /*  CALCIUM_ECR_INTERFACE_C_(_name,_timeType,_calInt,type,_typeName,_qual) */
-CALCIUM_ECR_INTERFACE_C_(een,float ,int,int   ,int2integer,,);
+CALCIUM_ECR_INTERFACE_C_(een,float ,int,int   ,int2integer,,)
 /*elg ne fonctionnera pas toujours correctement (port calcium_integer) si sizeof(long) == 64 bits && cal_int==int (32 bits)
   sinon problème de conversion de 64bits vers 32bits */
-CALCIUM_ECR_INTERFACE_C_(elg,float ,int,long  ,long2integer,,);
-CALCIUM_ECR_INTERFACE_C_(ere,float ,int,float ,float,,);
+CALCIUM_ECR_INTERFACE_C_(elg,float ,int,long  ,long2integer,,)
+CALCIUM_ECR_INTERFACE_C_(ere,float ,int,float ,float,,)
 /*Permet d'envoyer/recevoir des réels sur un port Double  */
-CALCIUM_ECR_INTERFACE_C_(erd,float ,int,float ,float2double,,);
-CALCIUM_ECR_INTERFACE_C_(edb,double,int,double,double,,);
+CALCIUM_ECR_INTERFACE_C_(erd,float ,int,float ,float2double,,)
+CALCIUM_ECR_INTERFACE_C_(edb,double,int,double,double,,)
 
-CALCIUM_ECR_INTERFACE_C_(elo,float ,int,int   ,bool,,);
-CALCIUM_ECR_INTERFACE_C_(ecp,float ,int,float ,cplx,,);
-CALCIUM_ECR_INTERFACE_C_(ech,float ,int,char  ,str,STAR,LCH_LAST_PARAM );
+CALCIUM_ECR_INTERFACE_C_(elo,float ,int,int   ,bool,,)
+CALCIUM_ECR_INTERFACE_C_(ecp,float ,int,float ,cplx,,)
+CALCIUM_ECR_INTERFACE_C_(ech,float ,int,char  ,str,STAR,LCH_LAST_PARAM )
 
-CALCIUM_ECR_INTERFACE_C_(eln,float ,int,long  ,long,,);
+CALCIUM_ECR_INTERFACE_C_(eln,float ,int,long  ,long,,)
 
 /* Definition des méthodes calcium destinées à l'interfaçage fortran
    avec une taille des INTEGER fortran paramétrés à la configuration du KERNEL  */
 
-CALCIUM_ECR_INTERFACE_C_(een_fort_,float ,cal_int,cal_int,integer,,);
+CALCIUM_ECR_INTERFACE_C_(een_fort_,float ,cal_int,cal_int,integer,,)
 /*elg_fort_ ne fonctionnera pas toujours correctement (port calcium_integer) si sizeof(long) == 64 bits && cal_int==int (32 bits)
   sinon problème de conversion de 64bits vers 32bits */
-CALCIUM_ECR_INTERFACE_C_(elg_fort_,float ,cal_int,long   ,long2integer,,);
-CALCIUM_ECR_INTERFACE_C_(ein_fort_,float ,cal_int,int    ,int2integer,,);
-CALCIUM_ECR_INTERFACE_C_(ere_fort_,float ,cal_int,float ,float,,);
-CALCIUM_ECR_INTERFACE_C_(erd_fort_,float ,cal_int,float ,float2double,,);
-CALCIUM_ECR_INTERFACE_C_(edb_fort_,double,cal_int,double,double,,);
-CALCIUM_ECR_INTERFACE_C_(elo_fort_,float ,cal_int,int   ,bool,,);
-CALCIUM_ECR_INTERFACE_C_(ecp_fort_,float ,cal_int,float ,cplx,,);
-CALCIUM_ECR_INTERFACE_C_(ech_fort_,float ,cal_int,char  ,str,STAR,LCH_LAST_PARAM );
-
-CALCIUM_ECR_INTERFACE_C_(eln_fort_,float ,cal_int,long   ,long,,);
+CALCIUM_ECR_INTERFACE_C_(elg_fort_,float ,cal_int,long   ,long2integer,,)
+CALCIUM_ECR_INTERFACE_C_(ein_fort_,float ,cal_int,int    ,int2integer,,)
+CALCIUM_ECR_INTERFACE_C_(ere_fort_,float ,cal_int,float ,float,,)
+CALCIUM_ECR_INTERFACE_C_(erd_fort_,float ,cal_int,float ,float2double,,)
+CALCIUM_ECR_INTERFACE_C_(edb_fort_,double,cal_int,double,double,,)
+CALCIUM_ECR_INTERFACE_C_(elo_fort_,float ,cal_int,int   ,bool,,)
+CALCIUM_ECR_INTERFACE_C_(ecp_fort_,float ,cal_int,float ,cplx,,)
+CALCIUM_ECR_INTERFACE_C_(ech_fort_,float ,cal_int,char  ,str,STAR,LCH_LAST_PARAM )
+
+CALCIUM_ECR_INTERFACE_C_(eln_fort_,float ,cal_int,long   ,long,,)
 
 /***************************/
 /*  Interface for cleaning */
index bdb12f21cc998db44985120924fa8a9b2647d379..83f69c64699d0c80191b9bcda8c6c73ea5ceecd7 100644 (file)
    le manipulateur de données d'effectuer  une recopie (qui fonctionne si les types sont compatibles). 
 */
 // CALCIUM_C2CPP_INTERFACE_CXX_(_name,_porttype,_type,_qual)
-CALCIUM_C2CPP_INTERFACE_CXX_(intc,int,int,);
-CALCIUM_C2CPP_INTERFACE_CXX_(long,long,long,);
+CALCIUM_C2CPP_INTERFACE_CXX_(intc,int,int,)
+CALCIUM_C2CPP_INTERFACE_CXX_(long,long,long,)
 
-CALCIUM_C2CPP_INTERFACE_CXX_(integer,integer,cal_int,);
-CALCIUM_C2CPP_INTERFACE_CXX_(int2integer ,integer,  int,);
-CALCIUM_C2CPP_INTERFACE_CXX_(long2integer, integer, long,);
+CALCIUM_C2CPP_INTERFACE_CXX_(integer,integer,cal_int,)
+CALCIUM_C2CPP_INTERFACE_CXX_(int2integer ,integer,  int,)
+CALCIUM_C2CPP_INTERFACE_CXX_(long2integer, integer, long,)
 
-CALCIUM_C2CPP_INTERFACE_CXX_(float,float,float, );
-CALCIUM_C2CPP_INTERFACE_CXX_(double,double,double,);
+CALCIUM_C2CPP_INTERFACE_CXX_(float,float,float, )
+CALCIUM_C2CPP_INTERFACE_CXX_(double,double,double,)
 
-CALCIUM_C2CPP_INTERFACE_CXX_(float2double,double,float, );
+CALCIUM_C2CPP_INTERFACE_CXX_(float2double,double,float, )
 
 /*  Fonnctionne mais essai suivant pour simplification de Calcium.c CALCIUM_C2CPP_INTERFACE_(bool,bool,);*/
-CALCIUM_C2CPP_INTERFACE_CXX_(bool,bool,int,);
-CALCIUM_C2CPP_INTERFACE_CXX_(cplx,cplx,float,);
-CALCIUM_C2CPP_INTERFACE_CXX_(str,str,char*,);
+CALCIUM_C2CPP_INTERFACE_CXX_(bool,bool,int,)
+CALCIUM_C2CPP_INTERFACE_CXX_(cplx,cplx,float,)
+CALCIUM_C2CPP_INTERFACE_CXX_(str,str,char*,)
 
 /* Définition de ecp_fin */
 extern "C" CalciumTypes::InfoType 
index 96abb847beea8934cf2fc6164329547becb4f3ab..66555ccbee539c9893c5c893777cce33ea7882f8 100644 (file)
@@ -111,7 +111,7 @@ Id          : $Id$
   extern "C" void ecp_lecture_##_name##_free ( _type _qual * data)                                               \
   {                                                                                                              \
     CalciumInterface::ecp_free< _type, _porttype >(data);                                                        \
-  };                                                                                                             \
+  }                                                                                                             \
                                                                                                                  \
                                                                                                                  \
   extern "C" CalciumTypes::InfoType ecp_ecriture_##_name (void * component, int dependencyType,           \
@@ -148,7 +148,7 @@ Id          : $Id$
       }                                                                                                   \
     DEBTRACE( "-------- CalciumInterface(ecriture Inter Part), Valeur de data :" << data )                \
     return CalciumTypes::CPOK;                                                                            \
-  };                                                                                                      \
+  }                                                                                                      \
 
 
 #endif
index 2ffb508d30497352156bb7966c1761e726d12b8c..972653bfa94197053fa601b020b87fa77ccb2f50 100644 (file)
@@ -198,7 +198,7 @@ namespace CalciumTypes {
   /* Erreur PVM    */
   //   const int CPPVM = 37;
   //   const int CPCOM = 37;
-  /* Erreur detectee au niveau de l'int CPERRINST = 38;
+  /* Erreur detectee au niveau de l'int CPERRINST = 38; */
 
   /* Mode d'execution non defini  */
   //   const int CPMODE    = 39;
index 31adb058a1c93aa968e4162c6b8df7029ffa7ac9..325400c7df9529524961fbdba73f918696b32871 100644 (file)
@@ -47,7 +47,7 @@ template <bool zerocopy, typename DataManipulator >
 struct Copy2UserSpace{
   
   template <class T1, class T2>
-  static void apply( T1 * & data, T2 & corbaData, size_t nRead ){
+  static void apply( T1 * & data, T2 & corbaData, size_t /*nRead*/ ){
 
      typedef typename DataManipulator::InnerType       InnerType;
 
@@ -161,7 +161,7 @@ struct Copy2UserSpace<false, DataManipulator> {
 template <bool rel, typename DataManipulator >
 struct DeleteTraits {
   template <typename T> 
-  static void apply(T * dataPtr) {
+  static void apply(T * /*dataPtr*/) {
 
     typedef typename DataManipulator::Type         DataType; // Attention != T
     
index 522d49dcbf6c1416a5f8603bea02f29ee1ac9b20..97f551b63ab6f7e940cb39d8fca45753aeaf34f7 100644 (file)
                        lastarg ) ;                                      \
 
 
-CALCIUM_ECR_INTERFACE_C_H(een_fort_,float ,cal_int,cal_int,integer,,);
-CALCIUM_ECR_INTERFACE_C_H(elg_fort_,float ,cal_int,long   ,long2integer,,);
-CALCIUM_ECR_INTERFACE_C_H(eln_fort_,float ,cal_int,long   ,long,,);
-CALCIUM_ECR_INTERFACE_C_H(ein_fort_,float ,cal_int,int    ,int2integer,,);
-CALCIUM_ECR_INTERFACE_C_H(ere_fort_,float ,cal_int,float ,float,,);
-CALCIUM_ECR_INTERFACE_C_H(erd_fort_,float ,cal_int,float ,float2double,,);
-CALCIUM_ECR_INTERFACE_C_H(edb_fort_,double,cal_int,double,double,,);
-CALCIUM_ECR_INTERFACE_C_H(elo_fort_,float ,cal_int,int   ,bool,,);  /*int pour bool ou cal_int */
-CALCIUM_ECR_INTERFACE_C_H(ecp_fort_,float ,cal_int,float ,cplx,,);
-CALCIUM_ECR_INTERFACE_C_H(ech_fort_,float ,cal_int,char  ,str,STAR,LCH_LAST_PARAM );
+CALCIUM_ECR_INTERFACE_C_H(een_fort_,float ,cal_int,cal_int,integer,,)
+CALCIUM_ECR_INTERFACE_C_H(elg_fort_,float ,cal_int,long   ,long2integer,,)
+CALCIUM_ECR_INTERFACE_C_H(eln_fort_,float ,cal_int,long   ,long,,)
+CALCIUM_ECR_INTERFACE_C_H(ein_fort_,float ,cal_int,int    ,int2integer,,)
+CALCIUM_ECR_INTERFACE_C_H(ere_fort_,float ,cal_int,float ,float,,)
+CALCIUM_ECR_INTERFACE_C_H(erd_fort_,float ,cal_int,float ,float2double,,)
+CALCIUM_ECR_INTERFACE_C_H(edb_fort_,double,cal_int,double,double,,)
+CALCIUM_ECR_INTERFACE_C_H(elo_fort_,float ,cal_int,int   ,bool,,)  /*int pour bool ou cal_int */
+CALCIUM_ECR_INTERFACE_C_H(ecp_fort_,float ,cal_int,float ,cplx,,)
+CALCIUM_ECR_INTERFACE_C_H(ech_fort_,float ,cal_int,char  ,str,STAR,LCH_LAST_PARAM )
 
 
 
@@ -65,16 +65,16 @@ CALCIUM_ECR_INTERFACE_C_H(ech_fort_,float ,cal_int,char  ,str,STAR,LCH_LAST_PARA
                                                                         \
 
 
-CALCIUM_LECT_INTERFACE_C_H(len_fort_,float ,cal_int,cal_int ,integer,,);
-CALCIUM_LECT_INTERFACE_C_H(llg_fort_,float ,cal_int,long    ,long2integer,,);
-CALCIUM_LECT_INTERFACE_C_H(lln_fort_,float ,cal_int,long    ,long,,);
-CALCIUM_LECT_INTERFACE_C_H(lin_fort_,float ,cal_int,int     ,int2integer,,);
-CALCIUM_LECT_INTERFACE_C_H(lre_fort_,float ,cal_int,float   ,float,,);
-CALCIUM_LECT_INTERFACE_C_H(lrd_fort_,float ,cal_int,float   ,float2double,,);
-CALCIUM_LECT_INTERFACE_C_H(ldb_fort_,double,cal_int,double  ,double,,);
-CALCIUM_LECT_INTERFACE_C_H(llo_fort_,float ,cal_int,int     ,bool,,);   /*int pour bool ou cal_int */
-CALCIUM_LECT_INTERFACE_C_H(lcp_fort_,float ,cal_int,float   ,cplx,,);
-CALCIUM_LECT_INTERFACE_C_H(lch_fort_,float ,cal_int,char    ,str,STAR, LCH_LAST_PARAM );
+CALCIUM_LECT_INTERFACE_C_H(len_fort_,float ,cal_int,cal_int ,integer,,)
+CALCIUM_LECT_INTERFACE_C_H(llg_fort_,float ,cal_int,long    ,long2integer,,)
+CALCIUM_LECT_INTERFACE_C_H(lln_fort_,float ,cal_int,long    ,long,,)
+CALCIUM_LECT_INTERFACE_C_H(lin_fort_,float ,cal_int,int     ,int2integer,,)
+CALCIUM_LECT_INTERFACE_C_H(lre_fort_,float ,cal_int,float   ,float,,)
+CALCIUM_LECT_INTERFACE_C_H(lrd_fort_,float ,cal_int,float   ,float2double,,)
+CALCIUM_LECT_INTERFACE_C_H(ldb_fort_,double,cal_int,double  ,double,,)
+CALCIUM_LECT_INTERFACE_C_H(llo_fort_,float ,cal_int,int     ,bool,,)   /*int pour bool ou cal_int */
+CALCIUM_LECT_INTERFACE_C_H(lcp_fort_,float ,cal_int,float   ,cplx,,)
+CALCIUM_LECT_INTERFACE_C_H(lch_fort_,float ,cal_int,char    ,str,STAR, LCH_LAST_PARAM )
 
 
 
index 105e17805a3bf780ab0cbcfc4bf6f6842d520aac..2eeeee56504422e672f37bc95bf4dbc9fb8aa212 100644 (file)
@@ -103,7 +103,7 @@ GenericUsesPort< DataManipulator,CorbaPortType, repositoryName, UsesPort  >::put
   // OLD : Pour l'instant on résoud PB2 en créant une copie de la donnée en cas
   // OLD : de connexions multiples. Il faudra tester la collocalisation.
   // OLD :  DataType copyOfData; // = data; PB1
-  for(int i = 0; i < _my_ports->length(); i++) {
+  for(int i = 0; i < (int)_my_ports->length(); i++) { //TODO: mismatch signed/unsigned
 
     CorbaPortTypeVar port = CorbaPortType::_narrow((*_my_ports)[i]);
     //if (i) { PB1
index b0a94eff82a40888bafc200edf573706a9fbbcf1..321c69c63240e155d4c16f966d051f97831c4325 100644 (file)
@@ -120,5 +120,5 @@ public:
 int main() {
   TEST1 test1;
   TEST2 test2;
-};
+}
 
index 340bc37fa13299677049746cec10a8ba7640cff5..9526e4764561d916a534f8ebc95b8d799c880a3f 100644 (file)
@@ -30,8 +30,8 @@
 class A {
 
 public:
-  DSC_EXCEPTION(Exp1);
-  DSC_EXCEPTION(Exp2);
+  DSC_EXCEPTION(Exp1)
+  DSC_EXCEPTION(Exp2)
 
   A() {};
   virtual ~A() {};
@@ -53,8 +53,8 @@ public:
    }
 };
 
-DSC_EXCEPTION_CXX(A,Exp1);
-DSC_EXCEPTION_CXX(A,Exp2);
+DSC_EXCEPTION_CXX(A,Exp1)
+DSC_EXCEPTION_CXX(A,Exp2)
 
 
 int main() {
@@ -155,4 +155,4 @@ int main() {
     std::cout << "Exception ... reçue mais aurait dû recevoir Exception DSC" << std::endl;
   }
 
-};
+}
index 3887d0f4f02c65c0a84fabc4cb27d58c94c7d884..b18693058bf3fe19b703b7ce895f6d4f81e743ac 100644 (file)
@@ -255,16 +255,16 @@ void SaveDatasetInASCIIfile(HDFdataset *hdf_dataset, FILE* fp, int ident)
   delete [] name;
 
   hdf_dataset->GetDim(dim);
-  fprintf(fp, " %i\n", ndim);
+  fprintf(fp, " %li\n", ndim);
 
   for(int i = 0;i < ndim;i++) {
-    fprintf(fp, " %Ii", dim[i]);
+    fprintf(fp, " %li", dim[i]);
   }
 
   fprintf(fp, "\n");
   delete [] dim;
 
-  fprintf(fp, "%li %i:", size, order);
+  fprintf(fp, "%i %i:", size, order);
   if( type == HDF_ARRAY ) {
     HDFarray *array = new HDFarray(hdf_dataset);
     hdf_type data_type = array->GetDataType();
@@ -278,7 +278,7 @@ void SaveDatasetInASCIIfile(HDFdataset *hdf_dataset, FILE* fp, int ident)
     array->GetDim(arr_dim);
 
     for( int i = 0;i < arr_ndim; i++ ) {
-      fprintf(fp, " %Ii", arr_dim[i]);
+      fprintf(fp, " %i", arr_dim[i]);
     }
         
     //And write the data array
@@ -319,7 +319,7 @@ void SaveAttributeInASCIIfile(HDFattribute *hdf_attribute, FILE* fp, int ident)
   size_t size = hdf_attribute->GetSize();
 
   fprintf(fp, "%s\n", ATTRIBUTE_ID);
-  fprintf(fp, "%s %i %Ii\n", name, type, size);
+  fprintf(fp, "%s %i %i\n", name, type, size);
 
   delete [] name;
 
index 0ef3ebc381ac0ee0dc8c3b501785799f701ae29c..dca74ac0729cc86876dce628aab8a636f5ffbb96 100644 (file)
@@ -515,9 +515,9 @@ Launcher_cpp::createJobWithFile(const std::string xmlExecuteFile,
   new_job->setWorkDirectory(job_params.MachinesList[clusterName].WorkDirectory);
   new_job->setEnvFile(job_params.MachinesList[clusterName].EnvFile);
 
-  for(int i=0; i < job_params.InputFile.size(); i++)
+  for(size_t i=0; i < job_params.InputFile.size(); i++)
     new_job->add_in_file(job_params.InputFile[i]);
-  for(int i=0; i < job_params.OutputFile.size();i++)
+  for(size_t i=0; i < job_params.OutputFile.size();i++)
     new_job->add_out_file(job_params.OutputFile[i]);
 
   resourceParams p;
index b2d461ff074a93c0b443cb5d0a570c832ce55285..6a799ee3fdcc996bfe3ea0fb95958dc75f9e682d 100644 (file)
@@ -1169,7 +1169,7 @@ void NamingServiceTest::_destroyDirectoryRecurs(std::string path)
   if (_NS.Change_Directory(path.c_str()))
     {
       std::vector<std::string> subdirs = _NS.list_subdirs();
-      for (int i=0; i<subdirs.size(); i++)
+      for (int i=0; i<(int)subdirs.size(); i++) //TODO: mismatch signed/unsigned
         {
           std::string subpath=path + "/" +subdirs[i];
           _destroyDirectoryRecurs(subpath);
index ff918dd805fa566fbf123e91eb94dffa39ce87df..0301aa08d47656f1aeee3a89e91d7c699613b178 100644 (file)
@@ -224,7 +224,7 @@ SALOMEDS::StringSeq* SALOMEDS_AttributeStudyProperties_i::GetStoredComponents()
   std::vector<std::string> components = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetStoredComponents();
   SALOMEDS::StringSeq_var c_components = new SALOMEDS::StringSeq();
   c_components->length((_CORBA_ULong)components.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < components.size(); i++) {
+  for (int i = 0; i < (int)components.size(); i++) { //TODO: mismatch signed/unsigned
     c_components[i] = CORBA::string_dup(components[i].c_str());
   }
   return c_components._retn();
@@ -244,7 +244,7 @@ SALOMEDS::StringSeq* SALOMEDS_AttributeStudyProperties_i::GetComponentVersions(c
   std::vector<std::string> versions = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetComponentVersions(theComponent);
   SALOMEDS::StringSeq_var c_versions = new SALOMEDS::StringSeq();
   c_versions->length((_CORBA_ULong)versions.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < versions.size(); i++) {
+  for (int i = 0; i < (int)versions.size(); i++) { //TODO: mismatch signed/unsigned
     c_versions[i] = CORBA::string_dup(versions[i].c_str());
   }
   return c_versions._retn();
index 58b99c63da26600d24a10f4587c8586e95ceedf1..b4dea91ca35dd7eb242feba62eb63b85c49a348a 100644 (file)
@@ -382,7 +382,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfInteger_i::GetRowSetIndices(CORBA::L
   SALOMEDS::LongSeq_var CorbaSeq = new SALOMEDS::LongSeq;
   std::vector<int> aSeq = aTable->GetSetRowIndices(theRow);
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -443,7 +443,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfInteger_i::SortRow(CORBA::Long theRo
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -470,7 +470,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfInteger_i::SortColumn(CORBA::Long th
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -497,7 +497,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfInteger_i::SortByRow(CORBA::Long the
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -524,7 +524,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfInteger_i::SortByColumn(CORBA::Long
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
index 212e777a59b715aad49f57408ff731e2cfcd02e1..5e427b5fb2aaa2d85354f98ad2a71b8897a1cda3 100644 (file)
@@ -419,7 +419,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfReal_i::SortRow(CORBA::Long theRow,
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -446,7 +446,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfReal_i::SortColumn(CORBA::Long theCo
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -473,7 +473,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfReal_i::SortByRow(CORBA::Long theRow
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -500,7 +500,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfReal_i::SortByColumn(CORBA::Long the
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
index 3e1e47c3d6f6c591f6f340a1dfd1e5d2ac2a19dd..4f3427f6a78544925da18e48ac8b359b754c23e7 100644 (file)
@@ -33,8 +33,8 @@
 
 #include "Utils_ExceptHandlers.hxx"
 
-UNEXPECT_CATCH(ATS_IncorrectIndex, SALOMEDS::AttributeTable::IncorrectIndex);
-UNEXPECT_CATCH(ATS_IncorrectArgumentLength, SALOMEDS::AttributeTable::IncorrectArgumentLength);
+UNEXPECT_CATCH(ATS_IncorrectIndex, SALOMEDS::AttributeTable::IncorrectIndex)
+UNEXPECT_CATCH(ATS_IncorrectArgumentLength, SALOMEDS::AttributeTable::IncorrectArgumentLength)
 
 void SALOMEDS_AttributeTableOfString_i::SetTitle(const char* theTitle) 
 {
@@ -246,7 +246,7 @@ noexcept
   SALOMEDS::StringSeq_var CorbaSeq = new SALOMEDS::StringSeq;
   std::vector<std::string> aRow = aTable->GetRowData(theRow);
   CorbaSeq->length((_CORBA_ULong)aRow.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aRow.size(); i++) {
+  for (int i = 0; i < (int)aRow.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = CORBA::string_dup(aRow[i].c_str());
   }
   return CorbaSeq._retn();
@@ -289,7 +289,7 @@ noexcept
   SALOMEDS::StringSeq_var CorbaSeq = new SALOMEDS::StringSeq;
   std::vector<std::string> aColumn = aTable->GetColumnData(theColumn);
   CorbaSeq->length((_CORBA_ULong)aColumn.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aColumn.size(); i++) {
+  for (int i = 0; i < (int)aColumn.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = CORBA::string_dup(aColumn[i].c_str());
   }
   return CorbaSeq._retn();
@@ -359,7 +359,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfString_i::GetRowSetIndices(CORBA::Lo
   SALOMEDS::LongSeq_var CorbaSeq = new SALOMEDS::LongSeq;
   std::vector<int> aSeq = aTable->GetSetRowIndices(theRow);
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -419,7 +419,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfString_i::SortRow(CORBA::Long theRow
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -446,7 +446,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfString_i::SortColumn(CORBA::Long the
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -473,7 +473,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfString_i::SortByRow(CORBA::Long theR
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
@@ -500,7 +500,7 @@ SALOMEDS::LongSeq* SALOMEDS_AttributeTableOfString_i::SortByColumn(CORBA::Long t
     throw SALOMEDS::AttributeTable::IncorrectIndex();
   }
   CorbaSeq->length((_CORBA_ULong)aSeq.size()); //!< TODO: conversion from size_t to _CORBA_ULong
-  for (int i = 0; i < aSeq.size(); i++) {
+  for (int i = 0; i < (int)aSeq.size(); i++) { //TODO: mismatch signed/unsigned
     CorbaSeq[i] = aSeq[i];
   }
   return CorbaSeq._retn(); 
index f9f0b5dcd87fc66595ac2c4bcc622fef83c7b29c..1a841137a28597f882b204cbabadd2fe404ff9f5 100644 (file)
@@ -42,7 +42,7 @@
 #include <unistd.h>
 #endif
 
-UNEXPECT_CATCH(GALockProtection, SALOMEDS::GenericAttribute::LockProtection);
+UNEXPECT_CATCH(GALockProtection, SALOMEDS::GenericAttribute::LockProtection)
 
 SALOMEDS_GenericAttribute_i::SALOMEDS_GenericAttribute_i(DF_Attribute* theImpl, CORBA::ORB_ptr theOrb) :
   GenericObj_i(SALOMEDS_Study_i::GetThePOA())
index 47455cf1b571d875b2c92b71a0105c0a72dd76bd..76e07f49ca0f0b4d58eeb648db4c0e8ccd2f9b2c 100644 (file)
@@ -95,7 +95,7 @@ std::string SALOMEDS_IParameters::getValue(const std::string& listName, int inde
   if(!_ap) return "";
   if(!_ap->IsSet(listName, PT_STRARRAY)) return "";
   std::vector<std::string> v = _ap->GetStrArray(listName);
-  if(index >= v.size()) return ""; 
+  if(index >= (int)v.size()) return "";  //TODO: mismatch signed/unsigned
   return v[index];
 }
 
@@ -259,7 +259,7 @@ std::string SALOMEDS_IParameters::encodeEntry(const std::string& entry, const st
 std::string SALOMEDS_IParameters::decodeEntry(const std::string& entry)
 {
   int pos = (int)entry.rfind("_"); //!< TODO: conversion from size_t to int
-  if(pos < 0 || pos >= entry.length()) return entry;
+  if(pos < 0 || pos >= (int)entry.length()) return entry; //TODO: mismatch signed/unsigned
 
   std::string compName(entry, 0, pos), compID, tail(entry, pos+1, entry.length()-1);
   
index 7b213adfc6efc44d6ad991989b84aa1fa58b9df7..a7a904b707ea2a8ee392648aeff22d046768512a 100644 (file)
@@ -44,8 +44,8 @@
 #include <DF_Document.hxx>
 #include <stdlib.h> 
 
-UNEXPECT_CATCH(SBSalomeException, SALOME::SALOME_Exception);
-UNEXPECT_CATCH(SBLockProtection, SALOMEDS::StudyBuilder::LockProtection);
+UNEXPECT_CATCH(SBSalomeException, SALOME::SALOME_Exception)
+UNEXPECT_CATCH(SBLockProtection, SALOMEDS::StudyBuilder::LockProtection)
 
 //============================================================================
 /*! Function : constructor
index d03d6c9a563808322ab5d3d2acfe78483c282791..f347a69e3f00c0225fe3b91a46aeee191b3edb24 100644 (file)
@@ -59,8 +59,8 @@
 #include <unistd.h>
 #endif
 
-UNEXPECT_CATCH(SalomeException,SALOME::SALOME_Exception);
-UNEXPECT_CATCH(LockProtection, SALOMEDS::StudyBuilder::LockProtection);
+UNEXPECT_CATCH(SalomeException,SALOME::SALOME_Exception)
+UNEXPECT_CATCH(LockProtection, SALOMEDS::StudyBuilder::LockProtection)
 
 static SALOMEDS_Driver_i* GetDriver(const SALOMEDSImpl_SObject& theObject, CORBA::ORB_ptr orb);
 
@@ -1078,13 +1078,13 @@ SALOMEDS::UseCaseBuilder_ptr SALOMEDS_Study_i::GetUseCaseBuilder()
  *  Purpose  : 
  */
  //============================================================================
-void SALOMEDS_Study_i::AddPostponed(const char* theIOR
+void SALOMEDS_Study_i::AddPostponed(const char* /*theIOR*/
 {
   SALOMEDS::Locker lock; 
   //Not implemented
 }
 
-void SALOMEDS_Study_i::AddCreatedPostponed(const char* theIOR
+void SALOMEDS_Study_i::AddCreatedPostponed(const char* /*theIOR*/
 {
   SALOMEDS::Locker lock; 
   //Not implemented
@@ -1124,7 +1124,7 @@ void SALOMEDS_Study_i::RemovePostponed(CORBA::Long /*theUndoLimit*/)
  *  Purpose  : 
  */
 //============================================================================
-void SALOMEDS_Study_i::UndoPostponed(CORBA::Long theWay
+void SALOMEDS_Study_i::UndoPostponed(CORBA::Long /*theWay*/
 {
   SALOMEDS::Locker lock; 
   //Not implemented
index e92b7c5c952a6853fe19d2fd2430954ed4125d57..4e0f14d682126fc40d56f2e01acdf07f1c54feaf 100644 (file)
@@ -273,13 +273,13 @@ public:
   void EnableUseCaseAutoFilling(CORBA::Boolean isEnabled); 
 
   // postponed destroying of CORBA object functionality
-  virtual void AddPostponed(const char* theIOR);
+  virtual void AddPostponed(const char* /*theIOR*/);
 
-  virtual void AddCreatedPostponed(const char* theIOR);
+  virtual void AddCreatedPostponed(const char* /*theIOR*/);
 
   virtual void RemovePostponed(CORBA::Long theUndoLimit); // removes postponed IORs of old transaction
                                                         // if theUndoLimit==0, removes all
-  virtual void UndoPostponed(CORBA::Long theWay); // theWay = 1: resurrect objects,
+  virtual void UndoPostponed(CORBA::Long /*theWay*/); // theWay = 1: resurrect objects,
                                                 // theWay = -1: get back to the list of postponed
 
   virtual SALOMEDS::AttributeParameter_ptr GetCommonParameters(const char* theID, CORBA::Long theSavePoint);
index b7f94939d096b499523efe6c30bb94326f795d27..4b969b7f414763680516b887ca8225f6ce30116a 100644 (file)
@@ -79,7 +79,7 @@ void SALOMEDSTest::testAttributeSequenceOfInteger()
   CPPUNIT_ASSERT(v.size() == 3);
 
 
-  for(int i = 0; i<v.size(); i++) 
+  for(int i = 0; i<(int)v.size(); i++) 
     CPPUNIT_ASSERT((i+1) == v[i]);
 
   v.push_back(5);
index a98a09e3124a9c7fc91f0ba3c8230ddc3a16ca24..5681d487bfb701e0ce6cbba6288401d8281def2c 100644 (file)
@@ -587,12 +587,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfInteger::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;
     }
@@ -627,12 +627,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfInteger::SortColumn(const int theC
     }
     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: mismatch signed/unsigned
        if ( indices[i] == row+1 ) idx1 = i;
       indices[idx1] = idx;
     }
@@ -667,12 +667,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfInteger::SortByRow(const int theRo
     }
     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;
     }
@@ -707,12 +707,12 @@ std::vector<int> SALOMEDSImpl_AttributeTableOfInteger::SortByColumn(const int th
     }
     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 4f2281d82d164cb4c4bb3e028b2c09eac61c7d4c..63c69a935d788c584807b32a33cc42ac11ff4723 100644 (file)
@@ -296,7 +296,7 @@ std::string SALOMEDSImpl_IParameters::getStudyScript(SALOMEDSImpl_Study* study,
   std::vector<std::string> v = ip.getProperties();
   if(v.size() > 0) {
     dump += "#Set up visual properties:\n";
-    for(int i = 0; i<v.size(); i++) {
+    for(int i = 0; i<(int)v.size(); i++) {//TODO: mismatch signed/unsigned
       std::string prp = ip.getProperty(v[i]);
       dump += "ipar.setProperty(\""+v[i]+"\", \""+prp+"\")\n";
     }
@@ -305,11 +305,11 @@ std::string SALOMEDSImpl_IParameters::getStudyScript(SALOMEDSImpl_Study* study,
   v = ip.getLists();
   if(v.size() > 0) {
     dump += "#Set up lists:\n";
-    for(int i = 0; i<v.size(); i++) {
+    for(int i = 0; i<(int)v.size(); i++) { //TODO: mismatch signed/unsigned
       std::vector<std::string> lst = ip.getValues(v[i]);
       dump += "# fill list "+v[i]+"\n";
-      for(int j = 0; j < lst.size(); j++) {
-        if (lst[j].find('\"') == -1)
+      for(int j = 0; j < (int)lst.size(); j++) { //TODO: mismatch signed/unsigned
+        if (lst[j].find('\"') == -1) //TODO: std::string::npos
           dump += "ipar.append(\""+v[i]+"\", \""+lst[j]+"\")\n";
         else
           dump += "ipar.append(\""+v[i]+"\", \"\"\""+lst[j]+"\"\"\")\n";
@@ -346,7 +346,7 @@ std::string SALOMEDSImpl_IParameters::getDefaultScript(SALOMEDSImpl_Study* study
   std::vector<std::string> v = ip.getProperties();
   if(v.size() > 0) {
     dump += shift +"#Set up visual properties:\n";
-    for(int i = 0; i<v.size(); i++) {
+    for(int i = 0; i<(int)v.size(); i++) { //TODO: mismtach signed/unsigned
       std::string prp = ip.getProperty(v[i]);
       dump += shift +"ipar.setProperty(\""+v[i]+"\", \""+prp+"\")\n";
     }
@@ -355,10 +355,10 @@ std::string SALOMEDSImpl_IParameters::getDefaultScript(SALOMEDSImpl_Study* study
   v = ip.getLists();
   if(v.size() > 0) {
     dump +=  shift +"#Set up lists:\n";
-    for(int i = 0; i<v.size(); i++) {
+    for(int i = 0; i<(int)v.size(); i++) { //TODO: mismatch signed/unsigned
       std::vector<std::string> lst = ip.getValues(v[i]);
       dump += shift +"# fill list "+v[i]+"\n";
-      for(int j = 0; j < lst.size(); j++)
+      for(int j = 0; j < (int)lst.size(); j++) //TODO: mismatch signed/unsigned
         dump += shift +"ipar.append(\""+v[i]+"\", \""+lst[j]+"\")\n";
     }
   }
@@ -366,7 +366,7 @@ std::string SALOMEDSImpl_IParameters::getDefaultScript(SALOMEDSImpl_Study* study
   v = ip.getEntries();
   if(v.size() > 0) {
     dump += shift + "#Set up entries:\n";
-    for(int i = 0; i<v.size(); i++) {
+    for(int i = 0; i<(int)v.size(); i++) { //TODO: mismatch signed/unsigned
       std::vector<std::string> names = ip.getAllParameterNames(v[i]);
       std::vector<std::string> values = ip.getAllParameterValues(v[i]);
       std::string decodedEntry = ip.decodeEntry(v[i]);
@@ -386,7 +386,7 @@ std::string SALOMEDSImpl_IParameters::getDefaultScript(SALOMEDSImpl_Study* study
          dump += shift + "objId = " + values[idIndex] + "\n";
        }
           
-       for(int j = 0; j < names.size() && j < values.size(); j++) {
+       for(int j = 0; j < (int)names.size() && j < (int)values.size(); j++) { //TODO: mismtach siged/unsigned
          if(names[j] == _PT_ID_) continue;
          if(hasId)
            dump += shift + "ipar.setParameter(" + "objId" + ", \"" + names[j] + "\", \"" + values[j] + "\")\n";
index 9b082d27b0d1980324f2e4458a63cdffb18f8b7d..1fbc0993d9810b45795b3bb44c8a7bbeb8c06b46 100644 (file)
@@ -55,7 +55,7 @@ int main (int argc, char * argv[])
   aStudy->SetStudyLock("SRN");
   std::cout << "Is study locked = " << aStudy->IsStudyLocked() << std::endl;
   std::vector<std::string> ids = aStudy->GetLockerID();
-  for(int i = 0; i<ids.size(); i++)
+  for(size_t i = 0; i<ids.size(); i++)
     std::cout << "Get study locker : " << ids[i] << std::endl;
   aStudy->UnLockStudy("SRN");
   std::cout << "Is study locked = " << aStudy->IsStudyLocked()  << std::endl;
@@ -124,7 +124,7 @@ int main (int argc, char * argv[])
 
   std::cout << "Check the attributes on SObject" << std::endl;
   std::vector<DF_Attribute*> aSeq = aSO.GetAllAttributes();
-  for(int i = 0; i < aSeq.size(); i++) 
+  for(size_t i = 0; i < aSeq.size(); i++) 
     std::cout << "Found: " << dynamic_cast<SALOMEDSImpl_GenericAttribute*>(aSeq[i])->Type() << std::endl;
 
 
@@ -173,7 +173,7 @@ int main (int argc, char * argv[])
   std::vector<double> v2 = AP->GetRealArray("1");
   std::cout.precision(10);
   std::cout << " values :  "; 
-  for(int i = 0; i<v2.size(); i++) std::cout << v2[i] << " ";
+  for(size_t i = 0; i<v2.size(); i++) std::cout << v2[i] << " ";
   std::cout << std::endl;
   
   v[0] = 211.111;
@@ -202,17 +202,17 @@ int main (int argc, char * argv[])
   
   v2 = AP->GetRealArray("2");
   std::cout << "Restored real array with id = 2 is: ";
-  for(int i = 0; i<v2.size(); i++) std::cout << v2[i] << " ";
+  for(size_t i = 0; i<v2.size(); i++) std::cout << v2[i] << " ";
   std::cout << std::endl;
 
   vi = AP->GetIntArray("2");
   std::cout << "Restored int array with id = 2 is: ";
-  for(int i = 0; i<vi.size(); i++) std::cout << vi[i] << " ";
+  for(size_t i = 0; i<vi.size(); i++) std::cout << vi[i] << " ";
   std::cout << std::endl;
   
   vs = AP->GetStrArray("3");
   std::cout << "Restored string array with id = 2 is: ";
-  for(int i = 0; i<vs.size(); i++) std::cout << vs[i] << " ";
+  for(size_t i = 0; i<vs.size(); i++) std::cout << vs[i] << " ";
   std::cout << std::endl;
 
   std::cout << "Check RemoveID 1 with type PT_INTEGER" << std::endl;