diff --git a/src/ca/access.cpp b/src/ca/access.cpp index 85d654acb..18e239079 100644 --- a/src/ca/access.cpp +++ b/src/ca/access.cpp @@ -790,7 +790,7 @@ extern "C" unsigned epicsShareAPI ca_get_ioc_connection_count () return pcac->connectionCount (); } -extern "C" epicsShareFunc int epicsShareAPI ca_channel_status ( threadId tid ) +extern "C" epicsShareFunc int epicsShareAPI ca_channel_status ( threadId /* tid */ ) { printf ("new OSI API does not allow peeking at thread private storage of another thread\n"); printf ("please call \"ca_client_status ( unsigned level )\" from the subsystem specific diagnostic code.\n"); diff --git a/src/ca/cac.cpp b/src/ca/cac.cpp index 78ee46636..eb9b3dc58 100644 --- a/src/ca/cac.cpp +++ b/src/ca/cac.cpp @@ -176,7 +176,7 @@ cac::~cac () while ( piiu.valid () ) { tsDLIterBD pnext = piiu.itemAfter (); { - epicsAutoMutex autoMutex ( this->defaultMutex ); + epicsAutoMutex autoMutexTmp ( this->defaultMutex ); piiu->disconnectAllChan ( *this->pudpiiu ); } piiu->disconnect (); @@ -261,7 +261,7 @@ void cac::processRecvBacklog () } { - epicsAutoMutex autoMutex ( this->defaultMutex ); + epicsAutoMutex autoMutexTmp ( this->defaultMutex ); piiu->disconnectAllChan ( *this->pudpiiu ); }