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