remove unnecessary UnGuard which causes a strange null pointer warning in gcc-11+
This commit is contained in:
@@ -24,7 +24,6 @@ namespace pvd = epics::pvData;
|
|||||||
namespace pva = epics::pvAccess;
|
namespace pva = epics::pvAccess;
|
||||||
|
|
||||||
typedef epicsGuard<epicsMutex> Guard;
|
typedef epicsGuard<epicsMutex> Guard;
|
||||||
typedef epicsGuardRelease<epicsMutex> UnGuard;
|
|
||||||
|
|
||||||
namespace pvas {
|
namespace pvas {
|
||||||
|
|
||||||
@@ -93,7 +92,6 @@ struct StaticProvider::Impl : public pva::ChannelProvider
|
|||||||
Guard G(mutex);
|
Guard G(mutex);
|
||||||
builders_t::const_iterator it(builders.find(name));
|
builders_t::const_iterator it(builders.find(name));
|
||||||
if(it!=builders.end()) {
|
if(it!=builders.end()) {
|
||||||
UnGuard U(G);
|
|
||||||
builder = it->second;
|
builder = it->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user