From: eap Date: Tue, 3 May 2011 13:18:29 +0000 (+0000) Subject: 0021255: [CEA 466] compilation with gcc 4.6.0 without warnings X-Git-Tag: V6_3_0b1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fa1391b0fac2e414d160d8095464c90405979873;p=modules%2Fkernel.git 0021255: [CEA 466] compilation with gcc 4.6.0 without warnings int bid = 0; pthread_create(&traceThread, NULL, - FileTraceCollector::run, (void *)bid); + FileTraceCollector::run, &bid); --- diff --git a/src/SALOMELocalTrace/FileTraceCollector.cxx b/src/SALOMELocalTrace/FileTraceCollector.cxx index 55069fded..0478ef326 100644 --- a/src/SALOMELocalTrace/FileTraceCollector.cxx +++ b/src/SALOMELocalTrace/FileTraceCollector.cxx @@ -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");