C++ .. Lint warning
From: myName (myhandle_at_myweb.com)
Date: 05/17/04
- Next message: Karl Heinz Buchegger: "Re: Memory leak"
- Previous message: Jacques Labuschagne: "Re: Templates, syntax and allocation!"
- Next in thread: John Harrison: "Re: C++ .. Lint warning"
- Reply: John Harrison: "Re: C++ .. Lint warning"
- Reply: Rob Williscroft: "Re: C++ .. Lint warning"
- Reply: Ian: "Re: C++ .. Lint warning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 17 May 2004 14:40:03 +0530
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[i] = 0;
}
//...
}
Lint Warning:
=============
Info 1732: new in constructor for class 'StcStackInterface' which has no
assignment operator
sapList = new (StcLowerSapBase*)[ maxStcSaps ];
- Next message: Karl Heinz Buchegger: "Re: Memory leak"
- Previous message: Jacques Labuschagne: "Re: Templates, syntax and allocation!"
- Next in thread: John Harrison: "Re: C++ .. Lint warning"
- Reply: John Harrison: "Re: C++ .. Lint warning"
- Reply: Rob Williscroft: "Re: C++ .. Lint warning"
- Reply: Ian: "Re: C++ .. Lint warning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|