]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
0021255: [CEA 466] compilation with gcc 4.6.0 without warnings
authoreap <eap@opencascade.com>
Tue, 3 May 2011 14:14:53 +0000 (14:14 +0000)
committereap <eap@opencascade.com>
Tue, 3 May 2011 14:14:53 +0000 (14:14 +0000)
           int bid = 0;
           pthread_create(&traceThread, NULL,
-                                   SALOMETraceCollector::run, (void *)bid);
+                                   SALOMETraceCollector::run, &bid);

src/SALOMETraceCollector/SALOMETraceCollector.cxx

index 9cd1f998adfb40ad578c52ff8c30a63fe7bf6ffc..b9f3d2e1892736137ac34939f4a18316ce238c93 100644 (file)
@@ -70,7 +70,7 @@ BaseTraceCollector* SALOMETraceCollector::instance()
           pthread_t traceThread;
           int bid = 0;
           pthread_create(&traceThread, NULL,
-                                   SALOMETraceCollector::run, (void *)bid);
+                                   SALOMETraceCollector::run, &bid);
           sem_wait(&_sem);
           _singleton = myInstance; // _singleton known only when init done
         }