diff --git a/lib/node_modules/@stdlib/stats/base/dnanvariancetk/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dnanvariancetk/examples/c/example.c index 5f28159aad83..09d473b8c06b 100644 --- a/lib/node_modules/@stdlib/stats/base/dnanvariancetk/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/dnanvariancetk/examples/c/example.c @@ -22,7 +22,7 @@ int main( void ) { // Create a strided array: - double x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 }; + const double x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 }; // Specify the number of elements: int64_t N = 6; diff --git a/lib/node_modules/@stdlib/stats/base/dsnanmean/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/base/dsnanmean/benchmark/c/benchmark.length.c index 5c8e10021a94..f21bbad95476 100644 --- a/lib/node_modules/@stdlib/stats/base/dsnanmean/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/base/dsnanmean/benchmark/c/benchmark.length.c @@ -107,6 +107,7 @@ static double benchmark( int iterations, int len ) { v = 0.0; t = tic(); for ( i = 0; i < iterations; i++ ) { + // cppcheck-suppress uninitvar v = stdlib_strided_dsnanmean( len, x, 1 ); if ( v != v ) { printf( "should not return NaN\n" );