]> 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 13:18:29 +0000 (13:18 +0000)
committereap <eap@opencascade.com>
Tue, 3 May 2011 13:18:29 +0000 (13:18 +0000)
           int bid = 0;
           pthread_create(&traceThread, NULL,
-                                   FileTraceCollector::run, (void *)bid);
+                                   FileTraceCollector::run, &bid);

src/SALOMELocalTrace/FileTraceCollector.cxx

index 55069fded3b1af9ce0df0ed852f2b47b062ca66f..0478ef326b8008005aae2305da7d8563955fb50b 100644 (file)
@@ -65,7 +65,7 @@ BaseTraceCollector* FileTraceCollector::instance(const char *fileName)
           pthread_t traceThread;
           int bid = 0;
           pthread_create(&traceThread, NULL,
-                                   FileTraceCollector::run, (void *)bid);
+                                   FileTraceCollector::run, &bid);
           sem_wait(&_sem);
           _singleton = myInstance; // _singleton known only when init done
           DEVTRACE("FileTraceCollector:: instance()-end");