remove unnecessary UnGuard which causes a strange null pointer warning in gcc-11+

This commit is contained in:
2025-12-04 18:52:24 +01:00
committed by mdavidsaver
parent cb17a29b4d
commit 5d9cfac711

View File

@@ -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;
}
}