Skip to content

Commit 9220610

Browse files
committed
chore: fix C lint errors
1 parent 3060592 commit 9220610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/stats/base/dsnanmean/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static float rand_float( void ) {
9696
*/
9797
static double benchmark( int iterations, int len ) {
9898
double elapsed;
99-
float x[ len ] = {0}; /* Initialize array to silence warning */
99+
float x[ len ]
100100
double v;
101101
double t;
102102
int i;
@@ -107,6 +107,7 @@ static double benchmark( int iterations, int len ) {
107107
v = 0.0;
108108
t = tic();
109109
for ( i = 0; i < iterations; i++ ) {
110+
// cppcheck-suppress uninitvar
110111
v = stdlib_strided_dsnanmean( len, x, 1 );
111112
if ( v != v ) {
112113
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)