From: eap Date: Tue, 3 May 2011 14:14:53 +0000 (+0000) Subject: 0021255: [CEA 466] compilation with gcc 4.6.0 without warnings X-Git-Tag: V6_3_0b1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7becd9158a3883b4f606934dd9937c7cf1a9149d;p=modules%2Fkernel.git 0021255: [CEA 466] compilation with gcc 4.6.0 without warnings int bid = 0; pthread_create(&traceThread, NULL, - SALOMETraceCollector::run, (void *)bid); + SALOMETraceCollector::run, &bid); --- diff --git a/src/SALOMETraceCollector/SALOMETraceCollector.cxx b/src/SALOMETraceCollector/SALOMETraceCollector.cxx index 9cd1f998a..b9f3d2e18 100644 --- a/src/SALOMETraceCollector/SALOMETraceCollector.cxx +++ b/src/SALOMETraceCollector/SALOMETraceCollector.cxx @@ -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 }