M
myName
Hi All,
Getting warning in lint for this code. Any thought on this?
Regards
Ajay
StcStackInterface::StcStackInterface()
: genAlarm( false ),
trace( false ),
status( unboundStatus ),
localSuId( 0 ),
evcKernel( 0 )
{
// all the flags are initialized to false
sapList = new (StcLowerSapBase*)[ maxStcSaps ]; // This line giving warning
for( int i = 0; i < maxStcSaps; i++ ) {
sapList = 0;
}
//...
}
Lint Warning:
=============
Info 1732: new in constructor for class 'StcStackInterface' which has no
assignment operator
sapList = new (StcLowerSapBase*)[ maxStcSaps ];
Getting warning in lint for this code. Any thought on this?
Regards
Ajay
StcStackInterface::StcStackInterface()
: genAlarm( false ),
trace( false ),
status( unboundStatus ),
localSuId( 0 ),
evcKernel( 0 )
{
// all the flags are initialized to false
sapList = new (StcLowerSapBase*)[ maxStcSaps ]; // This line giving warning
for( int i = 0; i < maxStcSaps; i++ ) {
sapList = 0;
}
//...
}
Lint Warning:
=============
Info 1732: new in constructor for class 'StcStackInterface' which has no
assignment operator
sapList = new (StcLowerSapBase*)[ maxStcSaps ];