Commit 3c6703d1 authored by Jan Möbius's avatar Jan Möbius

Try suppressions for cppcheck

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@16369 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2b6ef96d
......@@ -36,6 +36,7 @@ DAMAGE.
template< int Degree >
struct BSplineElementCoefficients
{
// cppcheck-suppress negativeIndex
int coeffs[Degree+1];
BSplineElementCoefficients( void ) { memset( coeffs , 0 , sizeof( int ) * ( Degree+1 ) ); }
int& operator[]( unsigned int idx ){ if (idx <= Degree) return coeffs[idx]; return coeffs[0];}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment