diff --git a/src/db/dbChannelIO.cpp b/src/db/dbChannelIO.cpp index d892475f6..18dc852c7 100644 --- a/src/db/dbChannelIO.cpp +++ b/src/db/dbChannelIO.cpp @@ -135,6 +135,13 @@ void * dbChannelIO::operator new ( size_t size, return freeList.allocate ( size ); } +void * dbChannelIO::operator new ( size_t ) // X aCC 361 +{ + // The HPUX compiler seems to require this even though no code + // calls it directly + throw std::logic_error ( "why is the compiler calling private operator new" ); +} + #ifdef CXX_PLACEMENT_DELETE void dbChannelIO::operator delete ( void *pCadaver, tsFreeList < dbChannelIO > & freeList ) epicsThrows(()) diff --git a/src/db/dbPutNotifyBlocker.cpp b/src/db/dbPutNotifyBlocker.cpp index 27e4dab1b..c953f7b76 100644 --- a/src/db/dbPutNotifyBlocker.cpp +++ b/src/db/dbPutNotifyBlocker.cpp @@ -188,6 +188,13 @@ void * dbPutNotifyBlocker::operator new ( size_t size, return freeList.allocate ( size ); } +void * dbPutNotifyBlocker::operator new ( size_t ) // X aCC 361 +{ + // The HPUX compiler seems to require this even though no code + // calls it directly + throw std::logic_error ( "why is the compiler calling private operator new" ); +} + #ifdef CXX_PLACEMENT_DELETE void dbPutNotifyBlocker::operator delete ( void *pCadaver, tsFreeList < dbPutNotifyBlocker > & freeList ) epicsThrows(()) diff --git a/src/db/dbSubscriptionIO.cpp b/src/db/dbSubscriptionIO.cpp index 3d754d4c3..56c92640e 100644 --- a/src/db/dbSubscriptionIO.cpp +++ b/src/db/dbSubscriptionIO.cpp @@ -74,6 +74,13 @@ void dbSubscriptionIO::channelDeleteException () this->chan.pName(), this->type, this->count ); } +void * dbSubscriptionIO::operator new ( size_t ) // X aCC 361 +{ + // The HPUX compiler seems to require this even though no code + // calls it directly + throw std::logic_error ( "why is the compiler calling private operator new" ); +} + void dbSubscriptionIO::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if