]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Remove warnings
authoradam <adam>
Mon, 21 Feb 2011 13:29:30 +0000 (13:29 +0000)
committeradam <adam>
Mon, 21 Feb 2011 13:29:30 +0000 (13:29 +0000)
src/Basics/BasicsGenericDestructor.cxx
src/Communication/Receivers.cxx
src/Communication/SALOME_Comm_i.cxx
src/MPIContainer/MPIContainer_i.cxx
src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx

index 414815dafee2040997abc254bb5e42136bd9cd0e..77862d83040caf4538a580f3d9ae69a25ac7fdb1 100644 (file)
@@ -118,8 +118,12 @@ public:
         DEVTRACE("atExitSingleton(" << Make_ATEXIT << ")");
         assert(GENERIC_DESTRUCTOR::Destructors == 0);
         GENERIC_DESTRUCTOR::Destructors = new std::list<GENERIC_DESTRUCTOR*>;
+#ifndef _DEBUG_
+        atexit(HouseKeeping);
+#else
         int cr = atexit(HouseKeeping);
         assert(cr == 0);
+#endif
         atExitSingletonDone = true;
       }
   }
index fcba944276f5b2bd9594edda123adb7736f7c202..eb7c4b0c869cd58737c5e068baab14787d213b7a 100644 (file)
@@ -173,7 +173,6 @@ T *MPIReceiver<T,CorbaSender,servForT,ptrForT>::getDistValue(long &size){
   MPI_Status status;
   MPI_Comm com; 
   char   port_name_clt [MPI_MAX_PORT_NAME];
-  float telps, tuser, tsys, tcpu;
   T *_v;
   long _n;
 
index 3eefce56cf597ca9a260ea1aa923e449c0a1472a..e3c97bdae3e27545f850491103d36879f37d5f2a 100644 (file)
@@ -240,7 +240,7 @@ SALOME_MPISender_i::~SALOME_MPISender_i(){
 SALOME::MPISender::param* SALOME_MPISender_i::getParam()
 {
   char stag[12];
-  int myproc,i=0;
+  int i=0;
 
   SALOME::MPISender::param_var p = new SALOME::MPISender::param;
   MPI_Comm_rank(MPI_COMM_WORLD,&_cproc);
@@ -315,7 +315,6 @@ void* SALOME_MPISender_i::myThread(void *args)
 void SALOME_MPISender_i::close(const SALOME::MPISender::param& p)
 {
   std::string service(p.service);
-  const char *st=p.service;
   void *r;
   _newThr->join(&r);
   MPI_Comm_free(&_com); 
index 627f398bea6b3147fe4aa3f55c1c4b6ab85e2b34..35437916d7d28d0cd814c1253338b32f9125f82d 100644 (file)
@@ -381,8 +381,12 @@ Engines_MPIContainer_i::createMPIInstance(std::string genericRegisterName,
       _listInstances_map[instanceName] = iobject;
       _cntInstances_map[aGenRegisterName] += 1;
       //SCRUTE(servant->pd_refCount);
+#ifndef _DEBUG_
+      servant->setStudyId(studyId);
+#else
       bool ret_studyId = servant->setStudyId(studyId);
       ASSERT(ret_studyId);
+#endif
 
       // --- register the engine under the name
       //     containerName(.dir)/instanceName(.object)
index 546dddac2b8b25c013d4c6489522d0b5f80825a3..36d4b6540cddbb9b8b63b4cf5ed367adcc8c9342 100644 (file)
@@ -83,8 +83,12 @@ public :
                                                                    // il est utilise puis detruit par la fonction Nettoyage
                 //To be sure the trace singleton will be the last one to be destroyed initialize it here before calling atexit
                 LocalTraceBufferPool::instance();
+#ifndef _DEBUG_
+                atexit( Nettoyage );                      // execute Nettoyage lors de exit, aprs la destruction des donnees statiques !
+#else
                 int cr = atexit( Nettoyage );                      // execute Nettoyage lors de exit, aprs la destruction des donnees statiques !
                 assert(cr==0) ;
+#endif
                 ATEXIT_Done = true ;
           }
         }