fixed gnu warnings
This commit is contained in:
1 parent
bad7bd373e
commit
4a0334796c
2 files changed
+5
-3
No files matched your search
@@ -57,7 +57,8 @@ dbPutNotifyBlocker::~dbPutNotifyBlocker ()
|
||||
{
|
||||
this->cancel ();
|
||||
if ( this->maxValueSize > sizeof ( this->dbrScalarValue ) ) {
|
||||
delete [] this->pn.pbuffer;
|
||||
char * pBuf = static_cast < char * > ( this->pn.pbuffer );
|
||||
delete [] pBuf;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +80,8 @@ void dbPutNotifyBlocker::expandValueBuf ( unsigned long newSize )
|
||||
{
|
||||
if ( this->maxValueSize < newSize ) {
|
||||
if ( this->maxValueSize > sizeof ( this->dbrScalarValue ) ) {
|
||||
delete [] this->pn.pbuffer;
|
||||
char * pBuf = static_cast < char * > ( this->pn.pbuffer );
|
||||
delete [] pBuf;
|
||||
this->maxValueSize = sizeof ( this->dbrScalarValue );
|
||||
this->pn.pbuffer = & this->dbrScalarValue;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ private:
|
||||
cacWriteNotify * pNotify;
|
||||
unsigned long maxValueSize;
|
||||
dbSubscriptionIO * isSubscription ();
|
||||
void dbPutNotifyBlocker::expandValueBuf ( unsigned long newSize );
|
||||
void expandValueBuf ( unsigned long newSize );
|
||||
static epicsSingleton < tsFreeList < dbPutNotifyBlocker > > pFreeList;
|
||||
friend void putNotifyCompletion ( putNotify *ppn );
|
||||
dbPutNotifyBlocker ( const dbPutNotifyBlocker & );
|
||||
|
||||
Reference in new issue
Block a user