Skip to content

Commit e8f6bb7

Browse files
authored
style: disable lint rule
Signed-off-by: Athan <[email protected]>
1 parent 73f0f01 commit e8f6bb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ static double benchmark1( int iterations, int len ) {
111111
v = 0.0f;
112112
t = tic();
113113
for ( i = 0; i < iterations; i++ ) {
114+
// cppcheck-suppress uninitvar
114115
v = stdlib_strided_snanmean( len, x, 1 );
115116
if ( v != v ) {
116117
printf( "should not return NaN\n" );
@@ -148,6 +149,7 @@ static double benchmark2( int iterations, int len ) {
148149
v = 0.0f;
149150
t = tic();
150151
for ( i = 0; i < iterations; i++ ) {
152+
// cppcheck-suppress uninitvar
151153
v = stdlib_strided_snanmean_ndarray( len, x, 1, 0 );
152154
if ( v != v ) {
153155
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)