Salome HOME
Removed some warnings
[tools/libbatch.git] / src / Local / Batch_BatchManager_Local.cxx
index 7e0c0b040116c6153d467456bcf5b9ae5ae01a0b..59e79a10746e4bd0709c1349fdb906b896de1876 100644 (file)
@@ -137,9 +137,6 @@ namespace Batch {
     istringstream iss(jobid.getReference());
     iss >> id;
 
-    // On retrouve le thread_id du thread
-    pthread_t thread_id;
-
     // @@@ --------> SECTION CRITIQUE <-------- @@@
     pthread_mutex_lock(&_threads_mutex);
     bool idFound = (_threads.find(id) != _threads.end());
@@ -807,7 +804,7 @@ namespace Batch {
 
 
       // On execute la commande du fils
-      int result = execve(argv[0], argv, envp);
+      execve(argv[0], argv, envp);
       UNDER_LOCK( cout << "*** debug_command = " << strerror(errno) << endl );
       // No need to deallocate since nothing happens after a successful exec