exp passed to assert must not change the state of the data structures
This commit is contained in:
@@ -145,7 +145,8 @@ private:
|
||||
return;
|
||||
}
|
||||
pComBuf = newComBuf ();
|
||||
assert ( pComBuf->push ( val ) );
|
||||
bool success = pComBuf->push ( val );
|
||||
assert ( success );
|
||||
this->pushComBuf ( *pComBuf );
|
||||
}
|
||||
|
||||
|
||||
@@ -79,8 +79,8 @@ void nciu::destroy (
|
||||
epicsGuard < epicsMutex > & guard )
|
||||
{
|
||||
while ( baseNMIU * pNetIO = this->eventq.first () ) {
|
||||
assert ( this->cacCtx.destroyIO (
|
||||
guard, pNetIO->getId (), *this ) );
|
||||
bool success = this->cacCtx.destroyIO ( guard, pNetIO->getId (), *this );
|
||||
assert ( success );
|
||||
}
|
||||
|
||||
// if the claim reply has not returned yet then we will issue
|
||||
|
||||
@@ -511,7 +511,10 @@ void ca_repeater ()
|
||||
|
||||
pBuf = new char [MAX_UDP_RECV];
|
||||
|
||||
assert ( osiSockAttach() );
|
||||
{
|
||||
bool success = osiSockAttach();
|
||||
assert ( success );
|
||||
}
|
||||
|
||||
port = envGetInetPortConfigParam ( & EPICS_CA_REPEATER_PORT,
|
||||
static_cast <unsigned short> (CA_REPEATER_PORT) );
|
||||
|
||||
Reference in New Issue
Block a user